Interface ICacheManager
Interface for cache manager.
Namespace: Kinvey
Assembly: Kinvey.dll
Syntax
public interface ICacheManager : IDisposable
Properties
| Improve this Doc View Sourcedbpath
Gets or sets the database file path.
Declaration
string dbpath { get; set; }
Property Value
Type | Description |
---|---|
System.String | The database file path. |
Methods
| Improve this Doc View SourceclearStorage()
Clears the storage.
Declaration
void clearStorage()
DeleteQueryCacheItem(QueryCacheItem)
Deletes query cache item.
Declaration
bool DeleteQueryCacheItem(QueryCacheItem item)
Parameters
Type | Name | Description |
---|---|---|
QueryCacheItem | item | Query cache item. |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetCache<T>(String)
Gets the cache.
Declaration
ICache<T> GetCache<T>(string collectionName)
where T : class, new()
Parameters
Type | Name | Description |
---|---|---|
System.String | collectionName | Collection name. |
Returns
Type | Description |
---|---|
ICache<T> | The cache. |
Type Parameters
Name | Description |
---|---|
T | The type of an item. |
GetQueryCacheItem(String, String, String)
Gets query cache item.
Declaration
QueryCacheItem GetQueryCacheItem(string collectionName, string query, string lastRequestTime)
Parameters
Type | Name | Description |
---|---|---|
System.String | collectionName | Collection name. |
System.String | query | Query. |
System.String | lastRequestTime | The last request time. |
Returns
Type | Description |
---|---|
QueryCacheItem | Query cache item. |
GetSyncQueue(String)
Gets the synchronization queue.
Declaration
ISyncQueue GetSyncQueue(string collectionName)
Parameters
Type | Name | Description |
---|---|---|
System.String | collectionName | Collection name. |
Returns
Type | Description |
---|---|
ISyncQueue | The synchronization queue. |
SetQueryCacheItem(QueryCacheItem)
Sets query cache item.
Declaration
bool SetQueryCacheItem(QueryCacheItem item)
Parameters
Type | Name | Description |
---|---|---|
QueryCacheItem | item | Query cache item. |
Returns
Type | Description |
---|---|
System.Boolean |
|