Skip to main content

Convenient work with Redis.

Project description

smart-redis-storage 0.1.2

Redis storage manager.


PyPI Downloads 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.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smart_redis_storage-0.1.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for smart_redis_storage-0.1.2.tar.gz
Algorithm Hash digest
SHA256 329bf1225e0ebac6d03826e0aab4694e84e3d6410b402697626e1f5940facec4
MD5 d0f6675eb1a766130ff541022c469eb8
BLAKE2b-256 7f3eedd74f2ec5ee61c27e50281cb09118f0f5484a92c79415347cde2f513e2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smart_redis_storage-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f22713f9fe6e8480159281f9c030804eca058721f8fbc5f407108ccf0fd01398
MD5 424192af43e553e3228a73d6ade3f735
BLAKE2b-256 03f444a8deabda946d38b21912543d00ca96ea28fcaf0b04403b177368142798

See more details on using hashes here.

Supported by

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