API Reference
replDb API
Learn how to use ReplDB, a key-value store for Replit Apps, to persist data in your extensions through simple read and write operations.
ReplDB is a simple key-value store available on all replit apps by default. Extensions can use ReplDB to store replit apps specific data.
Usage
Methods
replDb.set
Sets the value for a given key. Required permissions: repldb:read
, repldb:write
.
replDb.get
Returns a value associated with the given key. Required permissions: repldb:read
.
replDb.list
Lists keys in the replDb. Accepts an optional prefix
, which filters for keys beginning with the given prefix. Required permissions: repldb:read
.
replDb.del
Deletes a key in the replDb. Required permissions: repldb:read
, repldb:write
.