class Zold::CachedTxns

Cached transactions.

Author

Yegor Bugayenko (yegor256@gmail.com)

Copyright

Copyright © 2018 Yegor Bugayenko

License

MIT

Public Class Methods

new(txns) click to toggle source
# File lib/zold/txns.rb, line 66
def initialize(txns)
  @txns = txns
end

Public Instance Methods

fetch() click to toggle source
# File lib/zold/txns.rb, line 74
def fetch
  @fetch ||= @txns.fetch
end
flush() click to toggle source
# File lib/zold/txns.rb, line 70
def flush
  @fetch = nil
end