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

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, **options)
  key_prefix_camel = RedisStorage.extract_key_prefix_camel!(options)
  RedisStorage.reject_unknown_keywords!(options)
  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, **options)
  key_prefix_camel = RedisStorage.extract_key_prefix_camel!(options)
  RedisStorage.reject_unknown_keywords!(options)
  RedisStorage.new(client: client, key_prefix: key_prefix, key_prefix_camel: key_prefix_camel, scan_count: scan_count, atomic_clear: atomic_clear)
end