Skip to content

Commit

Permalink
Fix lists display call.
Browse files Browse the repository at this point in the history
Change-Id: I92be8093f020276eaafb63b7fdb0e5a3f1a03a07
  • Loading branch information
laurentluce committed Jun 10, 2015
1 parent 3020532 commit d9cb5a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -10,20 +10,20 @@ Cache with LFU eviction scheme implemented in Python with complexity O(1) for in
>>> cache.insert('k1', 'v1')
>>> cache.insert('k2', 'v2')
>>> cache.insert('k3', 'v3')
>>> cache.display_lists()
>>> cache
1: ['k1', 'k2', 'k3']

>>> cache.access('k2')
'v2'
>>> cache.display_lists()
>>> cache
1: ['k1', 'k3']
2: ['k2']

>>> cache.get_lfu()
('k1', 'v1')

>>> cache.delete_lfu()
>>> cache.display_lists()
>>> cache
1: ['k3']
2: ['k2']
```

0 comments on commit d9cb5a7

Please sign in to comment.