Пример #1
0
 /// <summary>Read the default configuration file for host/port</summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public static Bucket Bucket(string name)
 {
     return(KeyValueStore.Bucket(new RedisBucketConfiguration(RedisConfiguration.ReadConfigFile("KeyValueStore.config", true), name)));
 }
Пример #2
0
 /// <summary>
 /// Create a bucket using the specified redis connection.
 /// Note: Breaking API change: passing null,null for host,port
 /// no longer reads the config file. Please use Bucket(name)
 /// instead.
 /// </summary>
 /// <param name="name"></param>
 /// <param name="host"></param>
 /// <param name="port"></param>
 /// <returns></returns>
 public static Bucket Bucket(string name, string host, int?port)
 {
     return(KeyValueStore.Bucket(new RedisBucketConfiguration(name, host, port)));
 }