CacheKeys


Description:

[ CCode ( has_construct_function = false ) ]
public CacheKeys (Cache cache, string table_name, string key_column_name, string value_column_name)

Creates a new CacheKeys, which will operate with table_name, using column key_column_name to store keys and value_column_name to store values.

The created CacheKeys doesn't hold a reference to the cache, the caller is supposed to make sure the cache won't be freed before the CacheKeys is freed. This is to avoid circular dependency between the cache and the CacheKeys, when the ECacheKey is created by the cache itself (which is the expected use case).

Parameters:

cache

an Cache

table_name

a table name to operate with

key_column_name

column name for the keys

value_column_name

column name for the values

Returns:

a new CacheKeys