forked from aio-libs/aiomcache
-
Notifications
You must be signed in to change notification settings - Fork 2
/
__init__.py
52 lines (40 loc) · 1.24 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"""memcached client, based on mixpanel's memcache_client library
Usage example::
import asyncio
import aiomemcached
async def example():
c = aiomemcached.Client()
await c.set(b"some_key", b"Some value")
value = await c.get(b"some_key")
print(value)
values = await c.multi_get(b"some_key", b"other_key")
print(values)
await c.delete(b"another_key")
asyncio.run(example())
"""
from .client import Client
from .exceptions import (
ClientException,
ValidationException, ResponseException,
ConnectException, TimeoutException,
)
__all__ = (
'Client',
'ClientException',
'ValidationException', 'ResponseException',
'ConnectException', 'TimeoutException',
)
__name__ = 'AioMemcached'
__version__ = '0.8.2'
__author__ = 'Nikolay Kim'
__author_email__ = 'fafhrd91@gmail.com'
__maintainer__ = 'Rex Zhang <rex.zhang@gmail.com>'
__contributions__ = [
'Nikolay Kim <fafhrd91@gmail.com>',
'Andrew Svetlov <andrew.svetlov@gmail.com>',
'Rex Zhang <rex.zhang@gmail.com>',
]
__licence__ = 'BSD'
__description__ = 'A pure-Python(3.7+) asyncio memcached client,' \
' fork from aiomcache. '
__project_url__ = 'https://github.com/rexzhang/aiomemcached'