Module: Cassie::ConnectionHandler

Includes:
Cluster, Sessions
Included in:
Cassie
Defined in:
lib/cassie/connection_handler.rb,
lib/cassie/connection_handler/cluster.rb,
lib/cassie/connection_handler/logging.rb,
lib/cassie/connection_handler/sessions.rb

Overview

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.

Defined Under Namespace

Modules: Cluster, Logging, Sessions

Instance Attribute Summary

Attributes included from Sessions

#sessions

Attributes included from Cluster

#cluster

Method Summary

Methods included from Sessions

#session

Methods included from Cluster

#keyspace_exists?, #table_exists?