Method

CamelDataCacheset_expire_age

Declaration [src]

void
camel_data_cache_set_expire_age (
  CamelDataCache* cdc,
  time_t when
)

Description [src]

Set the cache expiration policy for aged entries.

Items in the cache older than when seconds may be flushed at any time. Items are expired in a lazy manner, so it is indeterminate when the items will physically be removed.

Note you can set both an age and an access limit. The age acts as a hard limit on cache entries.

Parameters

when

Type: time_t

Timeout for age expiry, or -1 to disable.