module Cassie::ConnectionHandler
Extend Cassie::ConnectionHandler
to provide cluster and session cacheing in line with Cassandra best practices.
The extending class must provide two methods that will be used by the connection handler for connections:
-
self.configuration
-
A configuration hash defining cluster options per environment
-
Used when connecting through
cassandra_driver
-
See [Configuration::Core] for a sample implementation with a .yml back-end
-
-
self.keyspace
-
The default keyspace to connect to when none is specified for a session.
-