Exemplo n.º 1
0
 public bool TryGetCachedData(string key, out RedisValue value) => Cache.TryGetValue(key, out value);
Exemplo n.º 2
0
 /// <summary>
 /// Attempts to read a dynamic member variable or property.
 /// This method is called automatically when the object is created as "dynamic" and a variable or property is implicitly queried.
 /// </summary>
 /// <param name="binder"></param>
 /// <param name="result"></param>
 /// <returns>True if the variable was retrieved, otherwise false.</returns>
 public override bool TryGetMember(GetMemberBinder binder, out object result)
 {
     return(_values.TryGetValue(binder.Name, out result));
 }
Exemplo n.º 3
0
 public bool TryGetCachedData(string key, out RedisValue value)
 {
     return(Cache.TryGetValue(key, out value));
 }