Module: RedisConnections
- Defined in:
- lib/redis_connections.rb
Overview
RedisConnections module provides documentation for global Redis connection pools used throughout the application. This ensures YARD can properly document these important shared resources.
Class Method Summary collapse
-
.inv_redis ⇒ ConnectionPool<Redis>
Connection pool for inventory-related Redis storage.
-
.inv_redis_ro ⇒ ConnectionPool<Redis>
Read-only connection pool for inventory-related Redis storage.
-
.persistent_redis ⇒ ConnectionPool<Redis>
Connection pool for persistent Redis storage.
-
.persistent_redis_ro ⇒ ConnectionPool<Redis>
Read-only connection pool for persistent Redis storage.
-
.redis_lru ⇒ ConnectionPool<Redis>
Connection pool for LRU (Least Recently Used) Redis instance.
-
.redis_lru_ro ⇒ ConnectionPool<Redis>
Read-only connection pool for LRU (Least Recently Used) Redis instance.
Class Method Details
.inv_redis ⇒ ConnectionPool<Redis>
Connection pool for inventory-related Redis storage. Primary Redis instance for inventory operations such as seat availability, restaurant package availability times, and other time-sensitive inventory data. Falls back to persistent Redis if inventory-specific Redis is unavailable.
43 44 45 |
# File 'lib/redis_connections.rb', line 43 def self.inv_redis $inv_redis end |
.inv_redis_ro ⇒ ConnectionPool<Redis>
Read-only connection pool for inventory-related Redis storage. Used for read operations on inventory data such as checking availability without modifying state. Falls back to read-only persistent Redis if inventory-specific Redis is unavailable.
52 53 54 |
# File 'lib/redis_connections.rb', line 52 def self.inv_redis_ro $inv_redis_ro end |
.persistent_redis ⇒ ConnectionPool<Redis>
Connection pool for persistent Redis storage. Used for data that needs to be preserved even after restarts.
25 26 27 |
# File 'lib/redis_connections.rb', line 25 def self.persistent_redis $persistent_redis end |
.persistent_redis_ro ⇒ ConnectionPool<Redis>
Read-only connection pool for persistent Redis storage. Used for read operations on persistent data.
33 34 35 |
# File 'lib/redis_connections.rb', line 33 def self.persistent_redis_ro $persistent_redis_ro end |
.redis_lru ⇒ ConnectionPool<Redis>
Connection pool for LRU (Least Recently Used) Redis instance. Used for caching data that can be evicted when memory is full.
9 10 11 |
# File 'lib/redis_connections.rb', line 9 def self.redis_lru $redis_lru end |
.redis_lru_ro ⇒ ConnectionPool<Redis>
Read-only connection pool for LRU (Least Recently Used) Redis instance. Used for read operations on cached data.
17 18 19 |
# File 'lib/redis_connections.rb', line 17 def self.redis_lru_ro $redis_lru_ro end |