cache2go is an in-memory caching library for Go that provides a simple and efficient way to store and retrieve data with optional expiration policies. It supports multiple independent cache tables, allowing developers to organize cached data according to different use cases or domains. The library includes features such as automatic expiration, callbacks on data eviction, and thread-safe operations for concurrent environments. It is designed to be easy to integrate into Go applications, offering a straightforward API for common caching tasks. cache2go can help improve performance by reducing the need for repeated computations or database queries. It also provides flexibility in managing cache lifecycles and behaviors. Overall, it is a practical solution for adding caching capabilities to Go applications.

Features

  • In-memory caching with multiple independent tables
  • Support for automatic data expiration
  • Thread-safe operations for concurrent access
  • Callbacks triggered on cache expiration events
  • Simple and intuitive API for integration
  • Improves performance by reducing redundant computations

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow cache2go

cache2go Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of cache2go!

Additional Project Details

Programming Language

Go

Related Categories

Go Libraries

Registered

4 days ago