Sha256: 8b64a12d4ec96b2fe5e588c0fcd368eadd797d260f9645dc92acedc7ee4177e5

Contents?: true

Size: 214 Bytes

Versions: 2

Compression:

Stored size: 214 Bytes

Contents

class Blacklight::AccessControls::PermissionsCache

  def initialize
    clear 
  end

  def get(pid)
    @cache[pid]
  end

  def put(pid, doc)
    @cache[pid] = doc 
  end

  def clear
    @cache = {}
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacklight-access_controls-0.2.0 lib/blacklight/access_controls/permissions_cache.rb
blacklight-access_controls-0.1.0 lib/blacklight/access_controls/permissions_cache.rb