Skip to content
Flint
Documentation

storage

modulePaperVelocity

Simple key/value storage shared by all scripts (and by all servers when storage.type=database).

import storage

Functions 8

Stored value for a key, or the default.

Stores a value (none deletes the key).

Adds a number to a stored number and returns the new value.

True if the key is stored.

Deletes a key.

All stored keys, optionally only those starting with a prefix.

Reads the latest value straight from the backend (use when another server may have changed it).

Writes pending changes now instead of waiting for the autosave.