class Tako::Proxy

Attributes

connection[R]
shard_name[R]

Public Class Methods

new(shard_name, connection) click to toggle source
# File lib/tako/proxy.rb, line 6
def initialize(shard_name, connection)
  @shard_name = shard_name
  @connection = connection
end

Public Instance Methods

with_shard() { || ... } click to toggle source
# File lib/tako/proxy.rb, line 11
def with_shard
  Tako::ProxyStack.with_shard(self) do
    yield
  end
end