Sha256: 051beb2907ec27fa0aaab4b2a1221d1bdac8aec7e39889f9cc5226ba529a9fc0

Contents?: true

Size: 507 Bytes

Versions: 27

Compression:

Stored size: 507 Bytes

Contents

require 'yaml/store'

module Innate
  class Cache
    # Keeps every cache in a separate file like this:
    # /tmp/innate-cache-yaml/delta-manveru-session.yaml
    #
    # The YAML cache is not safe for use between multiple processes, it is also
    # very slow compared to other caches, so generally the use of it is
    # discouraged.
    class YAML
      include Cache::API
      include Cache::FileBased

      STORE = ::YAML::Store
      DIR = 'innate-cache-yaml'
      EXT = '.yaml'
    end
  end
end

Version data entries

27 entries across 27 versions & 3 rubygems

Version Path
innate-2023.01.06 lib/innate/cache/yaml.rb
innate-2015.10.28 lib/innate/cache/yaml.rb
manveru-innate-2009.05 lib/innate/cache/yaml.rb
manveru-innate-2009.06.12 lib/innate/cache/yaml.rb
manveru-innate-2009.06 lib/innate/cache/yaml.rb
manveru-innate-2009.07 lib/innate/cache/yaml.rb
rjspotter-innate-2009.06.29 lib/innate/cache/yaml.rb
rjspotter-innate-2009.06.30 lib/innate/cache/yaml.rb
rjspotter-innate-2009.06.31 lib/innate/cache/yaml.rb
innate-2013.02.21 lib/innate/cache/yaml.rb
innate-2013.02 lib/innate/cache/yaml.rb
innate-2012.12 lib/innate/cache/yaml.rb
innate-2012.03 lib/innate/cache/yaml.rb
innate-2011.12 lib/innate/cache/yaml.rb
innate-2011.10 lib/innate/cache/yaml.rb
innate-2011.04 lib/innate/cache/yaml.rb
innate-2011.01 lib/innate/cache/yaml.rb
innate-2010.07 lib/innate/cache/yaml.rb
innate-2010.06.18 lib/innate/cache/yaml.rb
innate-2010.04 lib/innate/cache/yaml.rb