QuotaOverridesStore

class gafaelfawr.storage.quota.QuotaOverridesStore(storage, slack_client, logger)

Bases: object

Stores and retrieves quota overrides in Redis.

Parameters:

Methods Summary

delete()

Delete any stored quota overrides.

get()

Retrieve quota overrides from Redis, if any.

store(overrides)

Store quota overrides in Redis.

Methods Documentation

async delete()

Delete any stored quota overrides.

Returns:

True if there were quota overrides to delete, False otherwise.

Return type:

bool

async get()

Retrieve quota overrides from Redis, if any.

Returns:

Quota overrides if any are set, or None if there are none.

Return type:

QuotaConfig or None

async store(overrides)

Store quota overrides in Redis.

Parameters:

overrides (QuotaConfig) – Overrides to store, replacing any existing overrides.

Return type:

None