Method: Texd::Cache#initialize
- Defined in:
- lib/texd/cache.rb
#initialize(capacity) ⇒ Cache
Returns a new instance of Cache.
48 49 50 51 52 53 54 |
# File 'lib/texd/cache.rb', line 48 def initialize(capacity) @list = LinkedList.new @hash = {} @mtx = Mutex.new @count = 0 @capacity = capacity end |