Skip to content

ElastiCache module#

Index > ElastiCache

Auto-generated documentation for ElastiCache type annotations stubs module types-aiobotocore-elasticache.

How to install#

From PyPI with pip#

Install types-aiobotocore for ElastiCache service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[elasticache]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aiobotocore-lite[elasticache]'


# standalone installation
python -m pip install types-aiobotocore-elasticache

How to uninstall#

python -m pip uninstall -y types-aiobotocore-elasticache

Usage#

Code samples can be found in Examples.

ElastiCacheClient#

Type annotations and code completion for session.create_client("elasticache") as ElastiCacheClient boto3 documentation

# ElastiCacheClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_elasticache.client import ElastiCacheClient


session = get_session()
async with session.create_client("elasticache") as client:
    client: ElastiCacheClient

Paginators#

Type annotations and code completion for paginators from session.create_client("elasticache").get_paginator("...").

# DescribeCacheClustersPaginator usage example

from types_aiobotocore_elasticache.paginator import DescribeCacheClustersPaginator

def get_describe_cache_clusters_paginator() -> DescribeCacheClustersPaginator:
    return client.get_paginator("describe_cache_clusters"))

Waiters#

Type annotations and code completion for waiters from session.create_client("elasticache").get_waiter("...").

# CacheClusterAvailableWaiter usage example

from types_aiobotocore_elasticache.waiter import CacheClusterAvailableWaiter

def get_cache_cluster_available_waiter() -> CacheClusterAvailableWaiter:
    return Session().client("elasticache").get_waiter("cache_cluster_available")

Literals#

Type annotations for literals used in methods and schema.

# AZModeType usage example

from types_aiobotocore_elasticache.literals import AZModeType

def get_value() -> AZModeType:
    return "cross-az"

Type definitions#

Type annotations for type definitions used in methods and schema.