dave08
02/15/2024, 4:53 PMAnastasios Georgousakis
02/16/2024, 8:38 AMKacheableImpl
as name. It is not very kotlinsh it reminds me Java.
Lettuce library has also coroutines extensions. You can use conn.coroutines()
instead of conn.async()
Check https://lettuce.io/core/release/reference/#_coroutines_api_based_on_reactive_operationsdave08
02/16/2024, 10:11 AMAnastasios Georgousakis
02/16/2024, 10:26 AMDefaultKacheable
David Kubecka
02/16/2024, 12:01 PMdave08
02/16/2024, 2:43 PMdave08
02/16/2024, 2:44 PMdave08
02/16/2024, 2:44 PMDavid Kubecka
02/17/2024, 8:09 AMdave08
02/18/2024, 10:58 AMDavid Kubecka
02/18/2024, 11:51 AMdave08
02/18/2024, 11:56 AMdave08
02/18/2024, 11:58 AMdave08
02/18/2024, 1:44 PMconn.coroutines()
for Lettuce and a bit more documentation on switching the cache key naming. Thanks for the comments 😉!dave08
02/21/2024, 1:32 PMdave08
02/21/2024, 1:40 PMAnastasios Georgousakis
02/21/2024, 2:18 PMconn.coroutines().keys(pattern)
It returns a flow of keys that matches the pattern.dave08
02/21/2024, 2:20 PMKEYS
it's a blocking operation and isn't recommended in production...dave08
02/21/2024, 2:21 PMWarning: consideras a command that should only be used in production environments with extreme care. It may ruin performance when it is executed against large databases. This command is intended for debugging and special operations, such as changing your keyspace layout. Don't useKEYS
in your regular application code. If you're looking for a way to find keys in a subset of your keyspace, consider usingKEYS
or sets.SCAN