put


Description:

public bool put (string uid, string? revision, string object, CacheColumnValues? other_columns, CacheOfflineFlag offline_flag, Cancellable? cancellable = null) throws Error

Stores an object into the cache.

Depending on offline_flag, this update the object's offline state accordingly. When the offline_flag is set to e_cache_is_online, then it's set to SYNCED, like to be fully synchronized with the server, regardless of its previous offline state. Overwriting locally deleted object behaves like an addition of a completely new object.

Parameters:

this

an Cache

uid

a unique identifier of an object

revision

a revision of the object

object

the object itself

other_columns

an CacheColumnValues with other columns to set; can be null

offline_flag

one of CacheOfflineFlag, whether putting this object in offline

cancellable

optional Cancellable object, or null

Returns:

Whether succeeded.