Skip to content

Commit 130afe1

Browse files
committed
feature: shared lru cache
0 parents  commit 130afe1

File tree

8 files changed

+512
-0
lines changed

8 files changed

+512
-0
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
venv
2+
__pycache__
3+
.pytest_cache
4+
*.egg-info
5+
.vscode
6+
dist
7+
.eggs/
8+
build/
9+
_build/
10+
*.pyc
11+
.python-version

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# shared lru cache
2+
3+
## Install
4+
5+
```bash
6+
poetry add shared-lru-cache
7+
```
8+
9+
## Usage
10+
11+
```
12+
from shared_lru_cache import shared_lru_cache
13+
14+
15+
@shared_lru_cache(maxsize=8)
16+
def load_image():
17+
pass
18+
```

poetry.lock

Lines changed: 155 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[tool.poetry]
2+
name = "shared-lru-cache"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["Richard Löwenström <[email protected]>"]
6+
readme = "README.md"
7+
8+
[tool.poetry.dependencies]
9+
python = "^3.9,<3.11"
10+
11+
12+
[tool.poetry.group.dev.dependencies]
13+
pytest = "^8.2.2"
14+
numpy = "^2.0.0"
15+
16+
[build-system]
17+
requires = ["poetry-core"]
18+
build-backend = "poetry.core.masonry.api"

shared_lru_cache/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .shared_lru_cache import shared_lru_cache

0 commit comments

Comments
 (0)