Skip to content

Commit 836ede7

Browse files
authored
Merge pull request #629 from sanders41/remove-cache
Remove TTL cache
2 parents d6a9448 + 109ba11 commit 836ede7

File tree

5 files changed

+3
-25
lines changed

5 files changed

+3
-25
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "1.6.1"
1+
VERSION = "1.6.2"

meilisearch_python_async/client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from typing import Any
88

99
import jwt
10-
from aiocache import cached
1110
from httpx import AsyncClient
1211

1312
from meilisearch_python_async._http_requests import HttpRequests
@@ -514,7 +513,6 @@ async def update_key(self, key: KeyUpdate) -> Key:
514513

515514
return Key(**response.json())
516515

517-
@cached(ttl=20)
518516
async def multi_search(self, queries: list[SearchParams]) -> list[SearchResultsWithUID]:
519517
"""Multi-index search.
520518

meilisearch_python_async/index.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from urllib.parse import urlencode
1111

1212
import aiofiles
13-
from aiocache import cached
1413
from httpx import AsyncClient
1514

1615
from meilisearch_python_async._http_requests import HttpRequests
@@ -280,7 +279,6 @@ async def get_stats(self) -> IndexStats:
280279

281280
return IndexStats(**response.json())
282281

283-
@cached(ttl=20)
284282
async def search(
285283
self,
286284
query: str | None = None,
@@ -395,7 +393,6 @@ async def search(
395393

396394
return SearchResults(**response.json())
397395

398-
@cached(ttl=20)
399396
async def facet_search(
400397
self,
401398
query: str | None = None,

poetry.lock

Lines changed: 1 addition & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "meilisearch-python-async"
3-
version = "1.6.1"
3+
version = "1.6.2"
44
description = "A Python async client for the Meilisearch API"
55
authors = ["Paul Sanders <[email protected]>"]
66
license = "MIT"
@@ -24,7 +24,6 @@ include = ["meilisearch_python_async/py.typed"]
2424

2525
[tool.poetry.dependencies]
2626
python = "^3.8"
27-
aiocache = ">=0.12.1"
2827
aiofiles = ">=0.7"
2928
camel-converter = ">=1.0.0"
3029
httpx = ">=0.17"

0 commit comments

Comments
 (0)