Crate cal_redis

Source

Structs§

CallableCache
Main cache structure that combines local in-memory caching with remote Redis storage.

Functions§

create_pool
Creates Redis and local cache instances and sets up the event subscription.
get_account_by_id
Retrieves an account by its unique ID.
get_account_by_ident
Retrieves an account by its identifier (e.g., username, email).
get_accounts
Retrieves all accounts stored in Redis and deserializes them into AccountLite structs.
get_address
Retrieves a specific address for an account.
get_addresses
Retrieves all addresses for an account.
get_asset
Retrieves a specific asset for an account.
get_assets
Retrieves all assets for an account.
get_ddi
Retrieves a specific DDI for an account.
get_ddis
Retrieves all DDIs for an account.
get_device
Retrieves a specific device for an account.
get_device_by_ident
get_devices
Retrieves all devices for an account.
get_hash
Retrieves a field from a Redis hash directly.
get_hash_all_values
Retrieves all values from a Redis hash.
get_hook
Retrieves a specific hook for an account.
get_hooks
Retrieves all hooks for an account.
get_outbound_device
get_region_by_id
Retrieves a region by its unique ID.
get_region_by_ident
Retrieves a region by its identifier (could be an ID, name, etc.).
get_regions
Retrieves all regions stored in Redis.
get_str
Retrieves a string value directly from Redis.
get_trunk
Retrieves a specific trunk for an account.
get_trunk_and_ddi
Looks up an account by DDI ID and trunk IP.
get_trunks
Retrieves all trunks for an account.
insert_account
Inserts a complete account with all its related data into Redis.
insert_account_idents
Inserts account identifiers into a global lookup hash.
insert_assets
Inserts multiple assets for an account.
insert_ddis
Inserts multiple DDIs for an account.
insert_devices
Inserts multiple devices for an account.
insert_hooks
Inserts multiple hooks for an account.
insert_region
Inserts a region into Redis.
insert_region_idents
Inserts region identifiers into Redis for lookup purposes.
insert_trunks
Inserts multiple trunks for an account.