Method

EBackendFileCacheadd_object

Declaration [src]

gboolean
e_file_cache_add_object (
  EFileCache* cache,
  const gchar* key,
  const gchar* value
)

Description [src]

Adds a new key / value entry to cache. If an object corresponding to key already exists in cache, the function returns FALSE.

Parameters

key

Type: const gchar*

The hash key of the object to add.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
value

Type: const gchar*

The object to add.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

TRUE if successful, FALSE if key already exists.