ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

Service provider for the Orionis cache system.

Binds orionis.cache.contracts.ICacheManager to orionis.cache.CacheManager as a singleton and pins the Cache facade when this deferrable provider boots, so later attribute access avoids container resolution on every call.

Class Method provides Return the services registered by this provider.
Async Method boot Pin the Cache facade after all services are registered.
Method register Bind ICacheManager to CacheManager as a singleton.

Inherited from ServiceProvider:

Method __init__ Initialize a new ServiceProvider instance with the given application container.
Instance Variable app The application container instance to which this service provider will be attached.
def provides(cls) -> list[type]: (source)

Return the services registered by this provider.

Returns
list[type]List containing orionis.cache.contracts.ICacheManager.
async def boot(self): (source)

Pin the Cache facade after all services are registered.

Returns
NoneNo return value.
def register(self): (source)

Bind ICacheManager to CacheManager as a singleton.

Returns
NoneNo return value.