ghickman / django-cache-url Goto Github PK
View Code? Open in Web Editor NEWMoved to a new home at https://github.com/epicserve/django-cache-url
License: MIT License
Moved to a new home at https://github.com/epicserve/django-cache-url
License: MIT License
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.
Any chance you would want to bring this back? Seems like people are moving away from https://pypi.org/project/django-environ/ in favor of https://github.com/sloria/environs. See this issue for more context, sloria/environs#126.
There's no changelog for this project.
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.
as titled.
should be related to jazzband/django-redis#220
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?
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
django-redis
package name was changed from redis_cache
to django_redis
in version 3.8.0
https://github.com/niwibe/django-redis/blob/master/CHANGES.txt
With the addition of redis support, I forgot to bump the version. Can that be done so a new PyPI release can be made? Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.