Module: Store::Digest::Meta::LMDB::V1

Defined in:
lib/store/digest/meta/lmdb/v1.rb

Overview

This is the version 1 database layout.

Instance Method Summary collapse

Instance Method Details

#cache_ttlInteger

Return the default time-to-live on cache entries.

Returns:

  • (Integer)

    the TTL in seconds



723
724
725
# File 'lib/store/digest/meta/lmdb/v1.rb', line 723

def cache_ttl
  control_get :expiry
end

#cache_ttl=(ttl) ⇒ Integer

Set a new default time-to-live on cache entries.

Parameters:

  • ttl

    [

Returns:

  • (Integer)

    the new TTL in seconds



733
734
735
# File 'lib/store/digest/meta/lmdb/v1.rb', line 733

def cache_ttl= ttl
  control_set :expiry, ttl
end