mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 09:00:35 +00:00
Add a cache that would store the checked weak pointer to already authorized prepared statements and which key is a tuple of an authenticated_user and key of the prepared_statements_cache. The entries will be held as long as the corresponding prepared statement is valid (cached) and will be discarded with the period equal to the refresh period of the permissions cache. Entries are also going to be discarded after 60 minutes if not used. The purpose of this new cache is to save the lookup in the permissions cache for already authenticated resource (whatever is needed to be authenticated for the particular prepared statement). This is meant to improve the cache coherency as well (since we are going to look in a single cache instead of two). Signed-off-by: Vlad Zolotarov <vladz@scylladb.com>