put_sync


Description:

public bool put_sync (string key, string value, uint inc_ref_counts, Cancellable? cancellable = null) throws Error

Puts the key and value into the this.

The function adds a new or replaces an existing key, if any such already exists in the this .

Parameters:

this

an CacheKeys

key

a key identifier to put

value

a value to put with the key

inc_ref_counts

how many refs to add, or 0 to have it stored forever

cancellable

optional Cancellable object, or null

Returns:

Whether succeeded.