Skip to content

Commit

Permalink
Use lru_cache instead of cache for Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sandorkertesz committed Mar 26, 2024
1 parent 24b9740 commit e040f41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions earthkit/regrid/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import logging
import os
from abc import ABCMeta, abstractmethod
from functools import cache
from functools import lru_cache

from scipy.sparse import load_npz

Expand Down Expand Up @@ -71,7 +71,7 @@ def path(self):
def is_local(self):
False

@cache
@lru_cache
def index_path(self):
from earthkit.regrid.utils.caching import cache_file

Expand Down

0 comments on commit e040f41

Please sign in to comment.