mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +02:00
Add a tinydb example sharing state
This example is intended to showcase sharing state between all connected clients on a server, for example a key/value store (in-memory database) Closes #257
This commit is contained in:
@@ -44,6 +44,8 @@ A high level description of each example is:
|
||||
* `compress` - an echo-like server where instead of echoing back everything read
|
||||
it echos back a gzip-compressed version of everything read! All compression
|
||||
occurs on a CPU pool to offload work from the event loop.
|
||||
* `tinydb` - an in-memory database which shows sharing state between all
|
||||
connected clients, notably the key/value store of this database.
|
||||
|
||||
If you've got an example you'd like to see here, please feel free to open an
|
||||
issue. Otherwise if you've got an example you'd like to add, please feel free
|
||||
|
||||
Reference in New Issue
Block a user