Sha256: c42f752f282a6094196cba939e79cc0aba60cd4019c7857824132c2b5824287a

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 Bytes

Contents

# encoding: utf-8

require_relative 'common'


# Connect to the default host (localhost) and port (9160), these can be
# overridden by passing then :host and :port options.
cluster = Eurydice.connect(:timeout => 3000)

# Get a reference to a keyspace, it will be created if it does not exist
# (pass the option :create => false to not automatically create the keyspace).
keyspace = cluster.keyspace('my_keyspace')

# Clean up by dropping the keyspace
keyspace.drop!

# Finally disconnect everything
Eurydice.disconnect!

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eurydice-1.1.0.b4-java examples/01_connect.rb