NewObjectLRUDefault creates a new ObjectLRU with the default cache size.
()
| 26 | |
| 27 | // NewObjectLRUDefault creates a new ObjectLRU with the default cache size. |
| 28 | func NewObjectLRUDefault() *ObjectLRU { |
| 29 | return &ObjectLRU{MaxSize: DefaultMaxSize} |
| 30 | } |
| 31 | |
| 32 | // Put puts an object into the cache. If the object is already in the cache, it |
| 33 | // will be marked as used. Otherwise, it will be inserted. A single object might |
no outgoing calls
searching dependent graphs…