Sha256: bfcb70012da6629f78695e4feed89fd5c441ec7d3ce953f8a0290aac657ae9a7

Contents?: true

Size: 1.2 KB

Versions: 20

Compression:

Stored size: 1.2 KB

Contents

#Persist (persist.js)
Persistance management. Loosely based on redis.

###Driver messages
`if_per_set(ns, key, value)` - Set a key and value
`if_per_get(s, ns, key)` - Get a key's value, a message `int_get_res` will be sent back, `s` is the session key that will also be sent back. If there is no key, `null` will be sent back.
`if_per_del(ns, key)` - Delete a particular key
`if_per_del_ns(ns)` - Delete an entire namespace

###TODO driver messages
`if_per_set_f(ns, key, tp)` - Tell the driver to dereference the telepointer and to save it to disk.

For race conditions, e.g, an asynchronous set is followed by a synchronous get, it is undefined as to what that behavior that will be.
I If the page does not exist, the hash value is null.t is expected that the kernel should manage the write-back cache and that the driver should not attempt a write back cache unless
it is convenient to do so.

###Kernel interrupts
`int_per_get_res(s, ns, id, res)` - A response retrieved from `if_per_get` that contains the session key and result dictionary. Currently,
the service `vm` owns this function; so session does not have an effect on the outcome; but the string `"vm"` should be used for now for any
session keys involving persist.

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
flok-0.0.102 docs/mod/persist.md
flok-0.0.101 docs/mod/persist.md
flok-0.0.100 docs/mod/persist.md
flok-0.0.99 docs/mod/persist.md
flok-0.0.98 docs/mod/persist.md
flok-0.0.97 docs/mod/persist.md
flok-0.0.96 docs/mod/persist.md
flok-0.0.95 docs/mod/persist.md
flok-0.0.94 docs/mod/persist.md
flok-0.0.93 docs/mod/persist.md
flok-0.0.92 docs/mod/persist.md
flok-0.0.91 docs/mod/persist.md
flok-0.0.90 docs/mod/persist.md
flok-0.0.89 docs/mod/persist.md
flok-0.0.88 docs/mod/persist.md
flok-0.0.87 docs/mod/persist.md
flok-0.0.86 docs/mod/persist.md
flok-0.0.85 docs/mod/persist.md
flok-0.0.84 docs/mod/persist.md
flok-0.0.83 docs/mod/persist.md