Coder Social home page Coder Social logo

django-cache-url's People

Contributors

alanjds avatar alexcouper avatar emidln avatar ghickman avatar jezdez avatar lew21 avatar mapes911 avatar maxpeterson avatar meshy avatar mjumbewu avatar russelldavies avatar satyrius avatar thedrow avatar whs avatar yurtaev 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-cache-url's Issues

Run coverage on multiple pythons

Currently this is running using python 3.4 but this means the tests that touch the python 2[.6] specific code don't show up in coverage.

This makes it look like we can do multiple runs then combine them in the report step.

CHANGELOG

There's no changelog for this project.

Suggestion for URL schema

I've been trying to use this with redis socket and it will not work as documented.

Firstly using redis:///unix/path/to/redis.sock/db/prefix results in :unix as the path and generally a mess.

Secondly this method of specifying a socket rather than a TCP connection isn't very standard. Usually I see it as scheme:///path/to/socket/db This is used for example with MySQL connection URLs (mysql:///var/lib/mysql/mysql.sock/test_database). The tricky part comes with the optional prefix.

So here's my suggestion; move the prefix to a query resulting in the following:

scheme:///path/to/socket/db?prefix

Example:

redis:///var/run/redis/redis.sock/0?my_prefix

I can implement this for you along with (rewriting) the tests but wanted to run it by you first.

Allow setting cache `VERSION`

It would be nice if we could set the cache version in the url.

Maybe something like 'hiredis:///unix/path/to/socket/file.sock/db[/prefix[:version]]'

This would map closely with the keys that are generated: `"my-prefix:2:my-key"

I currently need to do the following:

CACHES = {'default': django_cache_url.config()}
CACHES['default']['VERSION'] = 2

Would this be something you're interested in adding?

Support Redis UNIX socket format

I can't think of a good way to handle file system paths in the URL, tbh. But in case you can think of one, django-redis supports a LOCATION field like this: unix:/path/to/socket/file.sock:1

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.