Skip to main content

Convenient work with Redis.

Project description

smart_redis_storage 0.1.0

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for smart_redis_storage-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8bde28a7042e5c8d1601afa3902f5561d5cdbf343a0d8a011ed49fdf26f9e76c
MD5 d9f8a0f28fef18d057535771014c6607
BLAKE2b-256 5c8bacb2def29e2dcd0f7670913d5b666686eb0332ee584c65e2ac96214456fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smart_redis_storage-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a4db252faf31521e4b64dc0a7d4b1a06eb7adc416e7862807e4c03fdaac609f
MD5 e69f193e9000cf3701e2ac022a8ff3a6
BLAKE2b-256 7571d66c43801e79edce3008c0ed3dab39cf6aca319e6931424222fc4eaa582b

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