Sha256: 558f6b8e4aedf36578d4d5700bba060da92422158f1f5921936eed405ac19a54

Contents?: true

Size: 933 Bytes

Versions: 1

Compression:

Stored size: 933 Bytes

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
`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.
It 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, res)` - A response retrieved from `if_per_get` that contains the session key and result dictionary. If the key
does not exist, null is returned.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flok-0.0.38 docs/mod/persist.md