Module: BetterAuth
- Defined in:
- lib/better_auth/redis_storage.rb,
lib/better_auth/redis_storage/version.rb
Defined Under Namespace
Classes: RedisStorage
Class Method Summary collapse
- .redis_storage(client:, key_prefix: RedisStorage::UNSET, scan_count: RedisStorage::UNSET, atomic_clear: false, **options) ⇒ Object
- .redisStorage(client:, key_prefix: RedisStorage::UNSET, scan_count: RedisStorage::UNSET, atomic_clear: false, **options) ⇒ Object
Class Method Details
.redis_storage(client:, key_prefix: RedisStorage::UNSET, scan_count: RedisStorage::UNSET, atomic_clear: false, **options) ⇒ Object
213 214 215 216 217 |
# File 'lib/better_auth/redis_storage.rb', line 213 def self.redis_storage(client:, key_prefix: RedisStorage::UNSET, scan_count: RedisStorage::UNSET, atomic_clear: false, **) key_prefix_camel = RedisStorage.extract_key_prefix_camel!() RedisStorage.reject_unknown_keywords!() RedisStorage.new(client: client, key_prefix: key_prefix, key_prefix_camel: key_prefix_camel, scan_count: scan_count, atomic_clear: atomic_clear) end |
.redisStorage(client:, key_prefix: RedisStorage::UNSET, scan_count: RedisStorage::UNSET, atomic_clear: false, **options) ⇒ Object
219 220 221 222 223 |
# File 'lib/better_auth/redis_storage.rb', line 219 def self.redisStorage(client:, key_prefix: RedisStorage::UNSET, scan_count: RedisStorage::UNSET, atomic_clear: false, **) key_prefix_camel = RedisStorage.extract_key_prefix_camel!() RedisStorage.reject_unknown_keywords!() RedisStorage.new(client: client, key_prefix: key_prefix, key_prefix_camel: key_prefix_camel, scan_count: scan_count, atomic_clear: atomic_clear) end |