VISH  0.2
Public Types | Public Member Functions | Static Public Member Functions
MemCore::Cache Class Reference

Main administrative Cache object container. More...

#include </home/werner/origo/vish/memcore/Cache.hpp>

List of all members.

Public Types

Public Member Functions

Static Public Member Functions


Detailed Description

Main administrative Cache object container.


Member Function Documentation

bool MemCore::Cache::insert ( const WeakPtr< Cacheable > &  Ca)

Insert some object with a given cost.

insert some object with a given cost.

Returns:
false, if the object cannot be inserted because it would exceed the allowed costs.
Parameters:
CaThe object carrying the data

The cacheable object must exist and have a valid Creator attached, i.e. the one that was used to create it and allows to release it.

bool MemCore::Cache::touch ( const WeakPtr< Cacheable > &  Ca)

Find old cacheable and push into the activity queue.

find old and push to back

Returns:
False if something went wrong, such as the Cache Domain was not found. Only insert() functions may create Cache Domains.
int MemCore::Cache::verbosity ( ) [static]

Flag to tell if any information about the cacheing stuff, e.g.

loading and releasing objects, shall be printed to stdio for debugging purposes. It is set from the environment variable MEMCACHE_VERBOSITY.

Note:
This is a very fast function and can be called with no overhead.

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