Skip to content

Commit

Permalink
Merge pull request #159 from A-kirami/cashews-export
Browse files Browse the repository at this point in the history
export from cashews
  • Loading branch information
Krukov authored Sep 17, 2023
2 parents 1e80d8f + 94b97ca commit 7e72221
Showing 1 changed file with 36 additions and 9 deletions.
45 changes: 36 additions & 9 deletions cashews/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from .cache_condition import NOT_NONE, only_exceptions, with_exceptions # noqa
from .commands import Command # noqa
from .cache_condition import NOT_NONE, only_exceptions, with_exceptions
from .commands import Command
from .contrib import * # noqa
from .decorators import context_cache_detect, fast_condition, thunder_protection # noqa
from .exceptions import CacheBackendInteractionError, CircuitBreakerOpen, LockedError, RateLimitError # noqa
from .formatter import default_formatter, get_template_and_func_for, get_template_for_key # noqa
from .helpers import add_prefix, all_keys_lower, memory_limit # noqa
from .key import get_cache_key_template, noself # noqa
from .validation import invalidate_further # noqa
from .wrapper import Cache, TransactionMode, register_backend # noqa
from .decorators import context_cache_detect, fast_condition, thunder_protection
from .exceptions import CacheBackendInteractionError, CircuitBreakerOpen, LockedError, RateLimitError
from .formatter import default_formatter, get_template_and_func_for, get_template_for_key
from .helpers import add_prefix, all_keys_lower, memory_limit
from .key import get_cache_key_template, noself
from .validation import invalidate_further
from .wrapper import Cache, TransactionMode, register_backend

# pylint: disable=invalid-name
cache = Cache(name="default")
Expand Down Expand Up @@ -35,3 +35,30 @@
"mem://?check_interval=1",
size=1_000_000,
) # 1_000_000 * 248(small dict size) == 31 mb


__all__ = [
"NOT_NONE",
"only_exceptions",
"with_exceptions",
"Command",
"context_cache_detect",
"fast_condition",
"thunder_protection",
"CacheBackendInteractionError",
"CircuitBreakerOpen",
"LockedError",
"RateLimitError",
"default_formatter",
"get_template_and_func_for",
"get_template_for_key",
"add_prefix",
"all_keys_lower",
"memory_limit",
"get_cache_key_template",
"noself",
"invalidate_further",
"Cache",
"TransactionMode",
"register_backend",
]

0 comments on commit 7e72221

Please sign in to comment.