I'm already using memcached over http so I can have multiple memcached
instances. But there isn't any way to set priority or which cache the
item goes to or is pulled from. So if I had a local memcached
instance, there's no way I could be sure which memcached instance the
data was coming from. I already store the data on disk as a back-up in
case the connection to my memcached servers fails. But I'm really
looking to store it in local memory. And hopefully without adding any
other tools to my stack.

On Feb 8, 5:04 pm, Brett Epps <brett.e...@quest.com> wrote:
> I'd recommend caching the data using Django's caching framework and either
> the local memory or memcached backend.  To update the cache, write a
> management command that runs periodically as a cron job.  (If you find
> yourself needing more sophisticated background task management, check out
> Celery.)
>
> Brett
>
> On 2/8/12 4:14 PM, "bfrederi" <brfrederi...@gmail.com> wrote:
>
>
>
>
>
>
>
> >I have some data that I retrieve using urllib and then cache on a
> >different server that I frequently use through my site. Since it gets
> >used so frequently, I was wondering why it might be a good/bad idea to
> >make the urllib request in the settings.py. It's data that gets
> >changed infrequently, but should update every once in a while, but I'd
> >prefer that it stayed in local memory as much as possible, since it
> >gets used so much. Any advice on how to make a dynamic global variable
> >like that is much appreciated.
>
> >Thanks,
> >Brandon
>
> >--
> >You received this message because you are subscribed to the Google Groups
> >"Django users" group.
> >To post to this group, send email to django-users@googlegroups.com.
> >To unsubscribe from this group, send email to
> >django-users+unsubscr...@googlegroups.com.
> >For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to