Hunt Cache 0.6.0 released, Distributed cache framework for Web application.

zoujiaqing zoujiaqing at
Tue Nov 26 04:22:49 UTC 2019

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; = 1; = "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);


More information about the Digitalmars-d-announce mailing list