Module: Redcord
- Extended by:
- T::Sig
- Defined in:
- lib/redcord.rb,
lib/redcord/errors.rb,
lib/redcord/redis_connection.rb
Defined Under Namespace
Modules: Actions, Attribute, Base, Configurations, Logger, LuaScriptReader, RedisConnection, Serializer, Tracer, VacuumHelper
Classes: AttributeNotIndexed, ConnectionPool, CustomIndexInvalidDesign, CustomIndexInvalidQuery, InvalidAction, InvalidAttribute, InvalidQuery, Migration, Railtie, RangeInterval, RecordNotFound, RedcordDeletedError, RedcordError, Redis, Relation, WrongAttributeType
Constant Summary
collapse
- @@configuration_blks =
T.let(
[],
T::Array[T.proc.params(arg0: T.untyped).void],
)
Class Method Summary
collapse
Class Method Details
._after_initialize! ⇒ Object
25
26
27
28
29
30
31
|
# File 'lib/redcord.rb', line 25
def self._after_initialize!
@@configuration_blks.each do |blk|
blk.call(Redcord::Base)
end
@@configuration_blks.clear
end
|
20
21
22
|
# File 'lib/redcord.rb', line 20
def self.configure(&blk)
@@configuration_blks << blk
end
|
.establish_connections ⇒ Object
113
114
115
|
# File 'lib/redcord/redis_connection.rb', line 113
def self.establish_connections
Redcord::Base.descendants.select(&:name).each(&:establish_connection)
end
|