Sha256: b57488c4b47e424e46e93a223b8710c4f8e0c5c92ea21e4aa31b10612f657d3c

Contents?: true

Size: 631 Bytes

Versions: 1

Compression:

Stored size: 631 Bytes

Contents

require 'yaml/store'

module Moneta
  module Adapters
    # YAML::Store backend
    # @api public
    class YAML < PStore
      # @!method initialize(options = {})
      #   @param [Hash] options
      #   @option options [YAML::Store] :backend YAML store to use
      #   @option options [String] :file YAML file to open - required unless using :backend
      #   @option options [Boolean] :threadsafe (false) Makes the YAML store thread-safe
      #   @option options Other options passed to `YAML::Store#new`
      backend { |file:, threadsafe: false, **options| ::YAML::Store.new(file, threadsafe, options) }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
moneta-1.6.0 lib/moneta/adapters/yaml.rb