module Legion::Cache
Constants
- VERSION
Public Class Methods
setup(**opts)
click to toggle source
# File lib/legion/cache.rb, line 16 def setup(**opts) return Legion::Settings[:cache][:connected] = true if connected? return unless client(**Legion::Settings[:cache], **opts) @connected = true Legion::Settings[:cache][:connected] = true end
shutdown()
click to toggle source
# File lib/legion/cache.rb, line 25 def shutdown Legion::Logging.info 'Shutting down Legion::Cache' close Legion::Settings[:cache][:connected] = false end