svg conversion (#717)
This commit is contained in:
14
skyvern/forge/sdk/cache/factory.py
vendored
Normal file
14
skyvern/forge/sdk/cache/factory.py
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user