Redis::DatabaseManager
Constants
DEFAULT_DB_COUNT = 16
Constructors
new(default_count = DEFAULT_DB_COUNT)
SourceInstance methods
copy_database(source_id : DatabaseId, dest_id : DatabaseId, replace : Bool = false) : Tuple(Bool, String | Nil)
Copy all data from source to destination database
copy_keys(source_id : DatabaseId, dest_id : DatabaseId, pattern : String) : Tuple(Int64, String | Nil)
Copy keys matching pattern from source to destination
Create a new named or numeric database
Drop/delete a database
Freeze a database (make read-only)
Get a database, creating if it doesn't exist (for numeric IDs only)
List all databases with their info
Reset a database (clear all data but keep it)