class CachedWrapper
A pooled session wrapper that returns sessions to the cache on close.
Definitions
def pool
Signature
-
returns
Pool The pool responsible for reusing this session.
Implementation
def pool
@options[:pool]
end
def payload
Signature
-
returns
Hash The raw session payload returned by the bridge.
Implementation
def payload
@options[:payload]
end
def close
Return the session to the pool when possible.
Implementation
def close
unless self.pool.reuse(self)
super
end
end