📄️ Constructor
Creates a new MiftahDB instance.
📄️ Get
Retrieves a value from the database by its key.
📄️ Set
Sets a value in the database with an optional expiration.
📄️ Exists
Checks if a key exists in the database.
📄️ Delete
Deletes a key-value pair from the database.
📄️ Rename
Renames a key in the database.
📄️ Get Expire
Gets the expiration date of a key.
📄️ Set Expire
Sets or update the expiration date of a key.
📄️ Keys
Retrieves keys matching a pattern.
📄️ Pagination
Retrieves a paginated list of keys matching a pattern.
📄️ Get Expired Range
Returns an array of keys that have expired between the given start and end dates.
📄️ Count
Counts the number of keys in the database.
📄️ Count Expired
Counts the number of expired keys in the database.
📄️ Multi Get
Retrieves multiple values from the database by their keys.
📄️ Multi Set
Sets multiple key-value pairs in the database with optional expirations.
📄️ Multi Delete
Deletes multiple key-value pairs from the database.
📄️ Cleanup
Removes expired key-value pairs from the database.
📄️ Vacuum
Optimizes the database file, reducing its size.
📄️ Flush
Ensures all the changes are written to disk.
📄️ Namespace
Creates a namespaced database instance.
📄️ Execute
Executes a raw SQL statement and returns the result.
📄️ Backup
Backups the database to a file asynchronously.
📄️ Restore
Restores the database from a backup file asynchronously.
📄️ Close
Closes the database connection.