kalevala v0.1.0 Kalevala.Brain.State View Source

Keep state around a character's brain

A key/value store that allows for expiring keys

Link to this section Summary

Functions

Get a key from the store

Put a key in the store, with an optional expiration time

Link to this section Functions

Link to this function

clean(state, compare_time \\ Time.utc_now())

View Source
Link to this function

get(state, key, compare_time)

View Source

Get a key from the store

Link to this function

put(state, key, value, expires_at)

View Source

Put a key in the store, with an optional expiration time