set_expire_age


Description:

public void set_expire_age (long when)

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:

this

A DataCache

when

Timeout for age expiry, or -1 to disable.




2022 vala-language.org