/// <summary> /// Wraps Uncodium.ISimpleStore into Storage with default 1GB cache. /// </summary> public static Storage ToPointCloudStore(this ISimpleStore x) => new Storage( x.Add, x.Get, x.Remove, x.Dispose, x.Flush, new LruDictionary <string, object>(1024 * 1024 * 1024) );
/// <summary> /// Wraps Uncodium.ISimpleStore into Storage. /// </summary> public static Storage ToPointCloudStore(this ISimpleStore x) => new Storage( (a, b, c, _) => x.Add(a, b, c), (a, _) => x.Get(a), (a, _) => x.Remove(a), (a, _) => x.TryGetFromCache(a), x.Dispose, x.Flush);
/// <summary> /// Wraps Uncodium.ISimpleStore into Storage. /// </summary> public static Storage ToPointCloudStore(this ISimpleStore x, LruDictionary <string, object> cache) => new Storage( x.Add, x.Get, x.Remove, x.Dispose, x.Flush, cache );