keystore
Types
pub type StoreEntry {
StoreEntry(
value: String,
ttl: option.Option(timestamp.Timestamp),
)
}
Constructors
-
StoreEntry( value: String, ttl: option.Option(timestamp.Timestamp), )
Values
pub fn expire(
store: Keystore,
key: String,
seconds: Int,
) -> Keystore
Add an expiration to an entry, this will make the value unaccessible when expired.
An aditional cleanup function tidy is given to remove expired entries.