Giter VIP home page Giter VIP logo

django-dynamodb-cache's Introduction

from earth import Human

class ItMe(Human):
    first_name: str = "joon hwan"
    last_name: str = "kim"
    resides_in: str = "๐Ÿ‡ฐ๐Ÿ‡ท"
    enjoys: list[str] = ["๐Ÿ”", "๐Ÿ’ป", "๐Ÿ", "๐Ÿถ", "๐Ÿˆ", "โ˜•๏ธ", "๐Ÿบ", "๐Ÿท"]
    speaks: list[str] = ["ko-KR", "๐Ÿv3.12"]
    web: str = "https://pypy.dev/"
    work_where: str = "FreeD Soft"
    work_what: str = "backend-engineer"

    @classmethod
    def hi(cls):
        print(f"hey ๐Ÿ‘‹, i'm {cls.first_name.capitalize()}")
        print(f"currently i work in {cls.work_what} @ {cls.work_where} in {cls.resides_in}")
        print(f"i speak {' and '.join(cls.speaks)}")
        print(f"some things i like: {', '.join(cls.enjoys)}")

>>> ItMe.hi()
hey ๐Ÿ‘‹, i'm Joon Hwan
currently i work in backend-engineer @ FreeD Soft in ๐Ÿ‡ฐ๐Ÿ‡ท
i speak ko-KR and ๐Ÿv3.12
some things i like: ๐Ÿ”, ๐Ÿ’ป, ๐Ÿ, ๐Ÿถ, ๐Ÿˆ, โ˜•๏ธ, ๐Ÿบ, ๐Ÿท

django-dynamodb-cache's People

Contributors

esc5221 avatar heyteacher avatar symroe avatar xncbf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-dynamodb-cache's Issues

`cache.set(key, value, None)` does not default to infinite/no expiry

Hello! This is an awesome project -- really appreciate it!

I ported some code which had been using the django in-memory cache where a call similar to:

cache.set(key, value, None)

would result in an infinite cache expiration.

In django-dynamodb-cache it seems like this results in the cache picking up the default timeout value, which is either set in the settings.py or is 120 seconds.

I looked a bit through the code and it also seems like a concept of a non-expiring cache key isn't fully supported at the moment.

It would be great for this extension to support non-expiring caches, and if cache.set(key, value, None) could result in a non-expiring cache key.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.