Class: KMDB::Key
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- KMDB::Key
- 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
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 |