-
Notifications
You must be signed in to change notification settings - Fork 86
store ref
Chris Petersen edited this page Oct 16, 2014
·
1 revision
store-ref returns a value from the data store
Parameter | Description |
---|---|
store | The store name |
id | The key for which a value is retrieved |
fback | Optional: The fallback value to be returned if the id is not found, e.g. '(). If not specified #f is returned. |
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
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip