cache for get_question or show_question_details #1

Closed
opened 2023-03-28 19:16:54 +00:00 by b4tman · 3 comments
Owner

using https://lib.rs/crates/lru for example

using https://lib.rs/crates/lru for example
Author
Owner

https://rocket.rs/v0.4/guide/state/#managed-state

may be managed-state using Arc + RwLock

or Arc+RwLock for reading and thread task with mpsc::channel for cache writing without lock wait (managed-state <= tx)

https://rocket.rs/v0.4/guide/state/#managed-state may be managed-state using [Arc](https://doc.rust-lang.org/std/sync/struct.Arc.html) + [RwLock](https://doc.rust-lang.org/std/sync/struct.RwLock.html) or Arc+RwLock for reading and thread task with [mpsc::channel](https://doc.rust-lang.org/std/sync/mpsc/fn.channel.html) for cache writing without lock wait (managed-state <= tx)
Author
Owner
or https://github.com/moka-rs/moka
b4tman changed title from lru cache for get_question or show_question_details to cache for get_question or show_question_details 2023-04-02 14:01:22 +00:00
b4tman referenced this issue from a commit 2023-04-02 14:02:37 +00:00
Author
Owner

all ok

all ok
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: b4tman/qchgk_web#1
No description provided.