| Module | Sequel::ConnectionExpiration |
| In: |
lib/sequel/extensions/connection_expiration.rb
|
| connection_expiration_random_delay | [RW] | The maximum number of seconds that will be added as a random delay to the expiration timeout Defaults to 0 seconds (no random delay). |
| connection_expiration_timeout | [RW] | The number of seconds that need to pass since connection creation before expiring a connection. Defaults to 14400 seconds (4 hours). |
Initialize the data structures used by this extension.
# File lib/sequel/extensions/connection_expiration.rb, line 46
46: def self.extended(pool)
47: pool.instance_exec do
48: sync do
49: @connection_expiration_timestamps ||= {}
50: @connection_expiration_timeout ||= 14400
51: @connection_expiration_random_delay ||= 0
52: end
53: end
54: end