feross / Cache Chunk Store
Licence: mit
In-memory LRU (least-recently-used) cache for abstract-chunk-store compliant stores
Stars: ✭ 24
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Cache Chunk Store
Ignite Book Code Samples
All code samples, scripts and more in-depth examples for the book high performance in-memory computing with Apache Ignite. Please use the repository "the-apache-ignite-book" for Ignite version 2.6 or above.
Stars: ✭ 86 (+258.33%)
Mutual labels: cache, in-memory
Libcache
A Lightweight in-memory key:value cache library for Go.
Stars: ✭ 152 (+533.33%)
Mutual labels: cache, in-memory
Keshi
A better in-memory cache for Node and the browser
Stars: ✭ 75 (+212.5%)
Mutual labels: cache, in-memory
Gcache
An in-memory cache library for golang. It supports multiple eviction policies: LRU, LFU, ARC
Stars: ✭ 1,787 (+7345.83%)
Mutual labels: cache, in-memory
Olric
Distributed cache and in-memory key/value data store. It can be used both as an embedded Go library and as a language-independent service.
Stars: ✭ 2,067 (+8512.5%)
Mutual labels: cache, in-memory
incache
Powerful key/value in-memory storage or on disk to persist data
Stars: ✭ 16 (-33.33%)
Mutual labels: cache, in-memory
Vimediacache
Cache media file while play media using AVPlayer
Stars: ✭ 758 (+3058.33%)
Mutual labels: cache
React Native Cached Image
CachedImage component for react-native
Stars: ✭ 890 (+3608.33%)
Mutual labels: cache
Dataloader
Implementation of Facebook's DataLoader in Golang
Stars: ✭ 703 (+2829.17%)
Mutual labels: cache
Gocache
☔️ A complete Go cache library that brings you multiple ways of managing your caches
Stars: ✭ 775 (+3129.17%)
Mutual labels: cache
Go Reflectx
Go reflection library to find struct field by its tag
Stars: ✭ 19 (-20.83%)
Mutual labels: cache
Rome
Carthage cache for S3, Minio, Ceph, Google Storage, Artifactory and many others
Stars: ✭ 724 (+2916.67%)
Mutual labels: cache
Xmemcached
High performance, easy to use multithreaded memcached client in java.
Stars: ✭ 715 (+2879.17%)
Mutual labels: cache
Cache Service Provider
A Cache Service Provider for Silex, using the doctrine/cache package
Stars: ✭ 23 (-4.17%)
Mutual labels: cache
Httpcache
Get a working HTTP Cache in Go (Golang) with only 3 lines of code!!!!
Stars: ✭ 17 (-29.17%)
Mutual labels: cache
Cleanmywechat
自动删除 PC 端微信缓存数据,包括从所有聊天中自动下载的大量文件、视频、图片等数据内容,解放你的空间。
Stars: ✭ 816 (+3300%)
Mutual labels: cache
Django Cachalot
No effort, no worry, maximum performance.
Stars: ✭ 790 (+3191.67%)
Mutual labels: cache
cache-chunk-store
abstract-chunk-store compliant stores
In-memory LRU (least-recently-used) cache forThis caches the results of store.get()
calls using
lru-cache
. See the lru-cache
docs for the
full list of configuration options.
Install
npm install cache-chunk-store
Usage
const CacheChunkStore = require('cache-chunk-store')
const FSChunkStore = require('fs-chunk-store') // any chunk store will work
const store = new CacheChunkStore(new FSChunkStore(10), {
// options are passed through to `lru-cache`
max: 100 // maximum cache size (this is probably the only option you need)
})
store.put(0, new Buffer('abc'), err => {
if (err) throw err
store.get(0, (err, data) => {
if (err) throw err
console.log(data)
// this will be super fast because it's cached in memory!
store.get(0, (err, data) => {
if (err) throw err
console.log(data)
})
})
})
License
MIT. Copyright (c) Feross Aboukhadijeh.
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].