Structs§
- Callable
Cache - 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.