DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | List of all members
Deveel.Data.Caching.ICache Interface Reference

Provides a contract to access a caching system. More...

Inheritance diagram for Deveel.Data.Caching.ICache:
Deveel.Data.Caching.Cache Deveel.Data.Caching.CacheAdapter Deveel.Data.Caching.MemoryCache Deveel.Data.Caching.TableCellCache.Cache Deveel.Data.Caching.TableCellCache.Cache Deveel.Data.Caching.SizeLimitedCache

Public Member Functions

bool TryGet (object key, out object value)
 Tries to get an object for the given key from the underlying cache system. More...
 
bool Set (object key, object value)
 Sets an object into the underlying caching system. More...
 
object Remove (object key)
 Removes an object from the cache. More...
 
void Clear ()
 Clears all the cached items within the underlying system. More...
 

Detailed Description

Provides a contract to access a caching system.

Definition at line 25 of file ICache.cs.

Member Function Documentation

void Deveel.Data.Caching.ICache.Clear ( )

Clears all the cached items within the underlying system.

Implemented in Deveel.Data.Caching.Cache, Deveel.Data.Caching.MemoryCache, and Deveel.Data.Caching.CacheAdapter.

object Deveel.Data.Caching.ICache.Remove ( object  key)

Removes an object from the cache.

Parameters
keyThe key referencing the object to remove from the cache.
Returns
Returns the value of the object removed from the cache, or null if the key was not found or the value stored was null.
bool Deveel.Data.Caching.ICache.Set ( object  key,
object  value 
)

Sets an object into the underlying caching system.

Parameters
keyThe key used to identify the object to store.
valueThe object value to store into the cache.
Returns
Returns true if the given value was newly added, or false if an object for the given key was previously set and the method only sets a new value.

Implemented in Deveel.Data.Caching.Cache.

bool Deveel.Data.Caching.ICache.TryGet ( object  key,
out object  value 
)

Tries to get an object for the given key from the underlying cache system.

Parameters
keyThe key of the object to return.
valueThe value corresponding to the provided key, obtained from the underlying cache. This value can also be null if it was not possible to find the key given in the cache.
Returns
Returns true if the corresponding key was found in the underlying cache, otherwise false.

Implemented in Deveel.Data.Caching.Cache.


The documentation for this interface was generated from the following file: