Files

15 lines
354 B
Python
Raw Permalink Normal View History

2024-08-23 11:17:01 +08:00
from skyvern.forge.sdk.cache.base import BaseCache
from skyvern.forge.sdk.cache.local import LocalCache
class CacheFactory:
__cache: BaseCache = LocalCache()
@staticmethod
def set_cache(cache: BaseCache) -> None:
CacheFactory.__cache = cache
@staticmethod
def get_cache() -> BaseCache:
return CacheFactory.__cache