Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

store-timestamp returns the timestamp when an item was last set.

Parameter Description
store The store name
id The id for which the timestamp is retrieved

Example

Example 1: Create a store, set a value and retrieve both the value and its timestamp

> (define store (make-store "main"))
> (store-set! store "HR" 78)        
> (store-ref store "HR")
78
> (store-timestamp store "HR")
0.
Clone this wiki locally