Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zackees committed May 10, 2023
1 parent ca49d20 commit 7d021c2
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
# template-python-cmd
A template for quickly making a python lib that has a command line program attached
# disklru

Creates a disk based lru that you can use in your apps.

Usefull for caches.

[![Linting](../../actions/workflows/lint.yml/badge.svg)](../../actions/workflows/lint.yml)

[![MacOS_Tests](../../actions/workflows/push_macos.yml/badge.svg)](../../actions/workflows/push_macos.yml)
[![Ubuntu_Tests](../../actions/workflows/push_ubuntu.yml/badge.svg)](../../actions/workflows/push_ubuntu.yml)
[![Win_Tests](../../actions/workflows/push_win.yml/badge.svg)](../../actions/workflows/push_win.yml)

Replace `template-python-cmd` and `template_python_cmd` with your command. Run tox until it's
correct.

To develop software, run `. ./activate.sh`
# Usage

```python
LRU_CACHE_FILE = "cache.db"
cache = DiskLRUCache(LRU_CACHE_FILE, 4)
cache.put("key", "value")
assert cache.get("key1") == "val"
cache.clear()
```

# Windows

Expand Down

0 comments on commit 7d021c2

Please sign in to comment.