Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Memcache & Redis & Cache support? #59

Closed
zoujiaqing opened this issue Apr 2, 2017 · 1 comment
Closed

add Memcache & Redis & Cache support? #59

zoujiaqing opened this issue Apr 2, 2017 · 1 comment

Comments

@zoujiaqing
Copy link
Member

I want use memcach / redis / cache.

config/application.conf

cache.storage = memory
cache.prefix = huntcache_
cache.expire = 3600

memcache.enabled = true
memcache.servers = 127.0.0.1:11211, 127.0.0.1:11212

redis.enabeld = true
redis.host = 127.0.0.1
redis.port = 6379
redis.database = 0
redis.password = ""
redis.timeout = 0

Global can use this code:

Cache.set("key", value);
string value = Cache.get("key");

Memcache.set("key", value, 3600);
string value = Memcache.get("key");

Redis.hSet("domain", "google", "www.google.cn");
string domain = Redis.hGet("domain", "google");
@viile
Copy link
Contributor

viile commented Apr 15, 2017

We have added this feature

@viile viile closed this as completed Apr 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants