store set! - part-cw/lambdanative GitHub Wiki
(store-set! store id val . category)
store-set! sets a value in the data store
| Parameter | Description |
|---|---|
| store | The store name |
| id | The key to which a value is stored |
| val | The value to store |
| category | Optional: Category, which the data belongs to, e.g. "vitalsign" |
Example
Example 1: Create a store, set a value and retrieve it both with store-ref and with store-timedref
> (define store (make-store "main"))
> (store-set! store "HR" 78)
> (set! ##now (+ ##now 31.)) ;; This is a terrible hack to advance the clock on Console
> (store-ref store "HR")
78
> (store-timedref store "HR")
#f