All Projects → adelowo → onecache

adelowo / onecache

Licence: MIT license
One caching API, Multiple backends

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Labels

Projects that are alternatives of or similar to onecache

Endb
Key-value storage for multiple databases. Supports MongoDB, MySQL, Postgres, Redis, and SQLite.
Stars: ✭ 208 (+65.08%)
Mutual labels:  cache
Torchdata
PyTorch dataset extended with map, cache etc. (tensorflow.data like)
Stars: ✭ 226 (+79.37%)
Mutual labels:  cache
W3 Total Cache Fixed
A community driven build of W3 Total Cache. The aim is to continuously incorporate fixes, improvements, and enhancements over the official WordPress release of W3 Total Cache.
Stars: ✭ 245 (+94.44%)
Mutual labels:  cache
Fuse
The simple generic LRU memory/disk cache for Android written in Kotlin
Stars: ✭ 212 (+68.25%)
Mutual labels:  cache
Cacheable Request
Wrap native HTTP requests with RFC compliant cache support
Stars: ✭ 218 (+73.02%)
Mutual labels:  cache
Caching
⏱ Caching library with easy-to-use API and many cache backends.
Stars: ✭ 234 (+85.71%)
Mutual labels:  cache
Laravel Partialcache
Blade directive to cache rendered partials in laravel
Stars: ✭ 205 (+62.7%)
Mutual labels:  cache
Bus
Bus 是一个基础框架、服务套件,它基于Java8编写,参考、借鉴了大量已有框架、组件的设计,可以作为后端服务的开发基础中间件。代码简洁,架构清晰,非常适合学习使用。
Stars: ✭ 253 (+100.79%)
Mutual labels:  cache
Laravel App Settings
Store settings in database with a manager UI for your Laravel app
Stars: ✭ 220 (+74.6%)
Mutual labels:  cache
Cacache
💩💵 but for your data. If you've got the hash, we've got the cache ™ (moved)
Stars: ✭ 245 (+94.44%)
Mutual labels:  cache
Pottery
Redis for humans. 🌎🌍🌏
Stars: ✭ 204 (+61.9%)
Mutual labels:  cache
Pincache
Fast, non-deadlocking parallel object cache for iOS, tvOS and OS X
Stars: ✭ 2,513 (+1894.44%)
Mutual labels:  cache
Cphalcon7
Dao7 - Web framework for PHP7.x,项目接洽 QQ 176013762
Stars: ✭ 237 (+88.1%)
Mutual labels:  cache
Cachingframework.redis
Distributed caching based on StackExchange.Redis and Redis. Includes support for tagging and is cluster-compatible.
Stars: ✭ 209 (+65.87%)
Mutual labels:  cache
Ionic Cache
Ionic and Angular cache service with IndexedDB, SQLite and WebSQL support
Stars: ✭ 248 (+96.83%)
Mutual labels:  cache
Redis Cache
A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, Credis, HHVM, replication and clustering.
Stars: ✭ 205 (+62.7%)
Mutual labels:  cache
Sjnetwork
SJNetwork is a high level network request tool based on AFNetworking and inspired on YTKNetwork.
Stars: ✭ 231 (+83.33%)
Mutual labels:  cache
souin
An HTTP cache system, RFC compliant, compatible with @TykTechnologies, @traefik, @caddyserver, @go-chi, @bnkamalesh, @beego, @devfeel, @labstack, @gofiber, @go-goyave, @gin-gonic, @zalando, @zeromicro, @nginx and @apache
Stars: ✭ 269 (+113.49%)
Mutual labels:  cache
Next Boost
Add a cache layer for server-side-rendered pages with stale-while-revalidate. Can be considered as an implementation of next.js's Incremental Static Regeneration which works with getServerSideProps.
Stars: ✭ 239 (+89.68%)
Mutual labels:  cache
Wp Rest Api Cache
Enable caching for WordPress REST API and increase speed of your application
Stars: ✭ 239 (+89.68%)
Mutual labels:  cache

OneCache - A Go caching Library

Coverage Status Build Status

Installation

$ go get -u github.com/adelowo/onecache

Supported cache stores

  • InMemory
  • Filesystem
  • Memcached
  • Redis

OneCache also comes with garbage collection. This is used by the filesystem and memory adapter to purge out expired items automatically. Please refer to the examples

Examples containing all adapters can be found here

var store onecache.Store

store = filesystem.MustNewFSStore("/home/adez/onecache_tmp")

err := store.Set("profile", []byte("Lanre"), time.Second*60)

if err != nil {
	fmt.Println(err)
	return
}

value,err := store.Get("profile")
if err != nil {
	fmt.Println(err)
	return
}

fmt.Println(string(value))

Some adapters like the filesystem and memory have a Garbage collection implementation. All that is needed to call is store.GC(). Ideally, this should be called in a ticker.C.

LICENSE

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].