Skip to content

Commit 9f0c06c

Browse files
committed
1 parent 1d43ec9 commit 9f0c06c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

adminforth/documentation/docs/tutorial/05-ListOfAdapters.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ Cones:
255255
npm i @adminforth/key-value-adapter-redis
256256
```
257257

258-
Redis adapter uses redis database.
258+
Redis adapter uses in-memory RAM-based Redis database with O(1) get complexity. It is great fit for most of lightweight tasks which fit in RAM. Also capable with multi-process or replica-based installations as centralized storage. Please note that Redis daemon might be not persisted to disk during restarts without additional settings, so if persistence is critical for your task - you might need to set up it separately (for many tasks like rate-limits ephemeral data are fine
259+
259260

260261
```ts
261262
import RedisKeyValueAdapter from '@adminforth/key-value-adapter-redis';
@@ -274,7 +275,9 @@ adapeter.set('test-key', 'test-value', 120); //expiry in 120 seconds
274275
npm i @adminforth/key-value-adapter-leveldb
275276
```
276277

277-
LebelDB uses local storage for storing keys.
278+
LebelDB uses disk storage with o(log(n)) get complexity. Good fit for large and/or persistent KV datasets which still require fast KV access but don't efficently fit into RAM. Please not that this is a single-process adapter only, so if you will run severall processes of admin - they will not be able to work with this adapter (>=2 processes which look at same level database might lead to unpredicted behaviour - exceptions or crashes).
279+
280+
You can use replicas with isolated disks, however in this case state will be also separated between replicas.
278281

279282
```ts
280283
import LevelDBKeyValueAdapter from '@adminforth/key-value-adapter-leveldb'

0 commit comments

Comments
 (0)