Skip to main content

DB Cache

https://img.shields.io/pypi/v/db_cache.svg https://img.shields.io/travis/bchiang2/db_cache.svg Documentation Status Updates

database caching for dynamic programming

Intro

Guide

TL;DR

import db_cache

# Instantiate cache object that connects to PostgreSQL with provided credential
cache = db_cache.Cache(database="db_name", user="admin", password="12345", host="localhost")

# Create decorater that cache function result using provided table name
@cache.use_table("some_table_name")
def some_expensive_function(large_int):
    prime1, prime2 = factoring(large_int)
    return (prime1, prime2)

# Return cached value if possible, otherwise compute and cache result.
some_expensive_function(121103)

Features

  • TODO

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2016-11-04)

  • First release on PyPI.

Metadata

Release files for db_cache 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for db_cache 0.1.2
File Interpreter ABI Platform Actions
db_cache-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for db_cache-0.1.2-py2.py3-none-any.whl

Release files / db_cache-0.1.2-py2.py3-none-any.whl

Download URL db_cache-0.1.2-py2.py3-none-any.whl
Size 5.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9eeacc849f378d0cbe36200ccb813de4bbcc6ef808f47f5e5d4d310aec84f56f
BLAKE2b-256 checksum
How to use checksums
30a744c5f0e231427400cf8f904579cdc9ce8974af84de9bab13d0ccd0df36c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for db_cache 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page