DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Properties | List of all members
Deveel.Data.Caching.CacheAdapter Class Reference
Inheritance diagram for Deveel.Data.Caching.CacheAdapter:
Deveel.Data.Caching.Cache Deveel.Data.Caching.ICache Deveel.Data.Caching.TableCellCache.Cache Deveel.Data.Caching.TableCellCache.Cache

Public Member Functions

 CacheAdapter (ICache baseCache)
 
override void Clear ()
 Clear the cache of all the entries. More...
 
- Public Member Functions inherited from Deveel.Data.Caching.Cache
bool Set (object key, object value)
 Puts an object into the cache with the given key. More...
 
bool TryGet (object key, out object value)
 Tries to get an object for the given key from the underlying cache system. More...
 
object Remove (Object key)
 Removes a node for the given key from the cache. More...
 
void Dispose ()
 
- Public Member Functions inherited from Deveel.Data.Caching.ICache
object Remove (object key)
 Removes an object from the cache. More...
 

Protected Member Functions

override bool SetObject (object key, object value)
 When overridden in a derived class, it sets the value for the key given. More...
 
override bool TryGetObject (object key, out object value)
 
override object RemoveObject (object key)
 
- Protected Member Functions inherited from Deveel.Data.Caching.Cache
 Cache ()
 
virtual void CheckClean ()
 This is called whenever at object is put into the cache. More...
 
virtual bool WipeMoreNodes ()
 Checks if the clean-up method should clean up more elements from the cache. More...
 
virtual void OnWipingNode (object value)
 Notifies that the given object has been wiped from the cache by the clean up procedure. More...
 
virtual void OnObjectAdded (object key, object value)
 Notifies that the given object and key has been added to the cache. More...
 
virtual void OnObjectRemoved (object key, Object value)
 Notifies that the given object and key has been removed from the cache. More...
 
virtual void OnAllCleared ()
 Notifies that the cache has been entirely cleared of all elements. More...
 
virtual void OnGetWalks (long totalWalks, long totalGetOps)
 Notifies that some statistical information about the hash map has updated. More...
 
virtual int Clean ()
 Cleans away some old elements in the cache. More...
 
virtual void Dispose (bool disposing)
 

Properties

ICache BaseCache [get, private set]
 
- Properties inherited from Deveel.Data.Caching.Cache
virtual int NodeCount [get]
 Gets the number of nodes that are currently being stored in the cache. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Deveel.Data.Caching.Cache
static int ClosestPrime (int value)
 

Detailed Description

Definition at line 20 of file CacheAdapter.cs.

Constructor & Destructor Documentation

Deveel.Data.Caching.CacheAdapter.CacheAdapter ( ICache  baseCache)
inline

Definition at line 21 of file CacheAdapter.cs.

21  {
22  BaseCache = baseCache;
23  }

Member Function Documentation

override void Deveel.Data.Caching.CacheAdapter.Clear ( )
inlinevirtual

Clear the cache of all the entries.

Reimplemented from Deveel.Data.Caching.Cache.

Definition at line 39 of file CacheAdapter.cs.

39  {
40  BaseCache.Clear();
41  base.Clear();
42  }
void Clear()
Clears all the cached items within the underlying system.
override object Deveel.Data.Caching.CacheAdapter.RemoveObject ( object  key)
inlineprotectedvirtual

Implements Deveel.Data.Caching.Cache.

Definition at line 35 of file CacheAdapter.cs.

35  {
36  return BaseCache.Remove(key);
37  }
object Remove(object key)
Removes an object from the cache.
override bool Deveel.Data.Caching.CacheAdapter.SetObject ( object  key,
object  value 
)
inlineprotectedvirtual

When overridden in a derived class, it sets the value for the key given.

Parameters
keyThe key corresponding to the value to set.
valuethe value to set into the cache.
Returns
Returns false if the key existed and the value was set or otherwise true if the key was not found and the value was added to the cache.

Implements Deveel.Data.Caching.Cache.

Definition at line 27 of file CacheAdapter.cs.

27  {
28  return BaseCache.Set(key, value);
29  }
bool Set(object key, object value)
Sets an object into the underlying caching system.
override bool Deveel.Data.Caching.CacheAdapter.TryGetObject ( object  key,
out object  value 
)
inlineprotectedvirtual

Implements Deveel.Data.Caching.Cache.

Definition at line 31 of file CacheAdapter.cs.

31  {
32  return BaseCache.TryGet(key, out value);
33  }
bool TryGet(object key, out object value)
Tries to get an object for the given key from the underlying cache system.

Property Documentation

ICache Deveel.Data.Caching.CacheAdapter.BaseCache
getprivate setprotected

Definition at line 25 of file CacheAdapter.cs.


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