public class Redis extends Object
例如: Redis.use().set("key", "value"); Redis.use().get("key");
Constructor and Description |
---|
Redis() |
Modifier and Type | Method and Description |
---|---|
static void |
addCache(Cache cache) |
static Object |
call(ICallback callback) |
static Object |
call(ICallback callback,
String cacheName) |
static Cache |
removeCache(String cacheName) |
static void |
setMainCache(String cacheName)
提供一个设置设置主缓存 mainCache 的机会,否则第一个被初始化的 Cache 将成为 mainCache
|
static Cache |
use() |
static Cache |
use(String cacheName) |
Copyright © 2018. All rights reserved.