gemseo / caches

cache_factory module

A factory for caches.

class gemseo.caches.cache_factory.CacheFactory[source]

Bases: object

A factory for AbstractCache.

Return type

None

create(cache_name, **options)[source]

Create an AbstractCache.

Parameters
  • cache_name (str) – The name of the cache class.

  • **options – The options of the cache

Returns

A cache.

Return type

gemseo.core.cache.AbstractCache

is_available(cache_name)[source]

Check the availability of a cache.

Parameters

cache_name (str) – The name of the cache cache.

Returns

Whether the cache is available.

Return type

bool

property caches: list[str]

The names of the cache classes.