27 28 29 30 31 32
# File 'app/lib/primer/octicon/cache.rb', line 27 def set(key, value) LOOKUP[key] = value # Remove first item when the cache is too large. LOOKUP.shift if LOOKUP.size > limit end