Class: KMDB::Key

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
CustomRecord
Defined in:
lib/kmdb/models/key.rb

Overview

Map strings (event and property names) to unique integers (Key#id) for performance

Constant Summary collapse

MAX_SIZE =
255

Class Method Summary collapse

Methods included from CustomRecord

included

Class Method Details

.get(string) ⇒ Object



14
15
16
17
# File 'lib/kmdb/models/key.rb', line 14

def self.get(string)
  @cache ||= {}
  @cache[string] ||= get_uncached(string)
end