mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-04-29 20:20:22 +00:00
14 lines
354 B
Python
14 lines
354 B
Python
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
|