Updated Design: Persistable Context (markdown)

Kazuki Nakanishi 2018-04-20 18:47:54 +09:00
parent cda537c484
commit 6a8729fb17
1 changed files with 8 additions and 0 deletions

@ -136,6 +136,14 @@ The table below shows the settting of `settings.js` for each case above.
| 3 | Exists | Not exist | Not exist | Throw an error |
| 4 | Not exist | N/A | N/A | Use `memory` module |
### Special case
* **$file**
If a dot is not specified, it is treated as a normal key without persistable context.
* **$file.**
If a key is omitted, throw an error.
* **$_.key**
"_" is a reserved name. It is treated as a memory context.
## Executing plugin specific function
Currently, `get` / `set` / `keys` is only methods to handle Context.
In Redis and others, an atomic API such as `INCR` can be used, but it can not be used in the current.