November 26, 2019 Hunt Cache 0.6.0 released, Distributed cache framework for Web application. | ||||
---|---|---|---|---|
| ||||
Hunt Cache is a D language cache framework that supports L2cache, and now supports Redis, Memcache, Memory, RocksDB. at the back of the cache. This version changes: 1. Radix based Memory driver 2. Using Hunt Redis as Redis backend 3. Support Redis Cluster 4. Redis allow set DB 5. Fix some bugs ## Sample code: ``` import hunt.cache; import hunt.logging; struct User { int id; string name; int age; } void main() { auto cache = CacheFactory.create(); // set key for cache data string key = "userinfo"; User user; user.id = 1; user.name = "zoujiaqing"; user.age = 100; // set cache data cache.set(key, user, 10); // get data and convert to User type User u = cache.get!User(key); logDebug(u.name); } ``` |
November 26, 2019 Re: Hunt Cache 0.6.0 released, Distributed cache framework for Web application. | ||||
---|---|---|---|---|
| ||||
Posted in reply to zoujiaqing | On Tuesday, 26 November 2019 at 04:22:49 UTC, zoujiaqing wrote: > Hunt Cache is a D language cache framework that supports L2cache, and now supports Redis, Memcache, Memory, RocksDB. at the back of the cache. > Code for DLang: https://code.dlang.org/packages/hunt-cache Reposiroty for Github: https://github.com/huntlabs/hunt-cache |
Copyright © 1999-2021 by the D Language Foundation