Sha256: a93267170816b03f338e9694b9b13966fdb478b95dc63ea1d24b44839721f811

Contents?: true

Size: 244 Bytes

Versions: 5

Compression:

Stored size: 244 Bytes

Contents

# frozen_string_literal: true
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

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-access_controls-0.5.1 lib/blacklight/access_controls/permissions_cache.rb
blacklight-access_controls-0.5.0 lib/blacklight/access_controls/permissions_cache.rb
blacklight-access_controls-0.4.1 lib/blacklight/access_controls/permissions_cache.rb
blacklight-access_controls-0.4.0 lib/blacklight/access_controls/permissions_cache.rb
blacklight-access_controls-0.3.0 lib/blacklight/access_controls/permissions_cache.rb