public bool TryGetCachedData(string key, out RedisValue value) => Cache.TryGetValue(key, out value);
/// <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)); }
public bool TryGetCachedData(string key, out RedisValue value) { return(Cache.TryGetValue(key, out value)); }