Sha256: a215471c7918b0ed370df96d8231b259e4f646f060375a375f81b450fe023535

Contents?: true

Size: 241 Bytes

Versions: 5

Compression:

Stored size: 241 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-6.0.1 lib/blacklight/access_controls/permissions_cache.rb
blacklight-access_controls-6.0.0 lib/blacklight/access_controls/permissions_cache.rb
blacklight-access_controls-0.7.0 lib/blacklight/access_controls/permissions_cache.rb
blacklight-access_controls-0.7.0.rc1 lib/blacklight/access_controls/permissions_cache.rb
blacklight-access_controls-0.6.2 lib/blacklight/access_controls/permissions_cache.rb