File: marshal.rb

package info (click to toggle)
libinnate-ruby 2010.07-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 812 kB
  • ctags: 621
  • sloc: ruby: 4,242; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'pstore'

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

      STORE = ::PStore
      DIR = 'innate-cache-marshal'
      EXT = '.marshal'
    end
  end
end