Skip to main content

Convenient work with Redis.

Project description

smart_redis_storage 0.1.1

Redis storage manager.


GitHub top language PyPI - Downloads GitHub release (latest by date) GitHub PyPI PyPI - Format GitHub Repo stars GitHub watchers GitHub forks


Author and developer: A.A. Suvorov


Help:

pip install smart-redis-storage

CRUD (Create, Read, Update, Delete) for Redis. Used in a large corporate project in a multi-user CRM (Django) to store intermediate data. I used user ids as uniq_key.

from smart_redis_storage.redis_storage import RedisStorageManager

user_id = 1
redis_storage_manager = RedisStorageManager()
redis_storage_manager.set_data(uniq_key=user_id, key='data', value={'id': 1, 'age': 33})
data = redis_storage_manager.get_data(uniq_key=user_id, key='data')
print(data) # {'id': 1, 'age': 33}
print(type(data)) # <class 'dict'>

Disclaimer of liability:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copyright:

--------------------------------------------------------
Licensed under the terms of the BSD 3-Clause License
(see LICENSE for details).
Copyright © 2018-2024, A.A. Suvorov
All rights reserved.
--------------------------------------------------------

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smart_redis_storage-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

smart_redis_storage-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file smart_redis_storage-0.1.1.tar.gz.

File metadata

  • Download URL: smart_redis_storage-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for smart_redis_storage-0.1.1.tar.gz
Algorithm Hash digest
SHA256 39af4054d130deb922c9158dbd863e5f22d7376347d58d704ec251516c6a8591
MD5 acb833c718fa502ded54916379c55299
BLAKE2b-256 03267b42502d4f1880717c99d92cea7a986e78c567680da1ce40311642ab3652

See more details on using hashes here.

File details

Details for the file smart_redis_storage-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for smart_redis_storage-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c60f33bf810ba387589912d3e7243af0c2555affdaeab405df5d864b5e96f993
MD5 2042482c3cda055fd95e7ed7ebfb8299
BLAKE2b-256 4619d40a30d7d76e03796a9c9c6b7a2d3feeb8d86fa8adf384264171f6aab762

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page