Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105500

how to cache invalidation

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From "Sven R. Kunze" <srkunze@mail.de>
Newsgroups comp.lang.python
Subject how to cache invalidation
Date Tue, 22 Mar 2016 22:33:27 +0100
Lines 15
Message-ID <mailman.22.1458682409.2244.python-list@python.org> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de 9h+gdyKn7DB3FA3vpWzs/wugUwjLfoABGgEc+Auxm8lQ==
Return-Path <srkunze@mail.de>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'context': 0.05; 'everybody,': 0.07; 'finished.': 0.07; 'garbage': 0.09; 'invalidate': 0.09; 'python': 0.10; ':-)': 0.12; 'devs': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'running:': 0.16; 'to:name:python list': 0.16; 'module': 0.25; 'purposes.': 0.29; 'another': 0.32; 'useful': 0.33; 'safely': 0.33; 'received:10.0': 0.34; 'so,': 0.35; 'best,': 0.35; 'needed': 0.36; 'to:addr:python- list': 0.36; 'received:10': 0.37; 'well.': 0.40; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'collection': 0.60; 'managers': 0.63; 'here:': 0.63; 'url:03': 0.84; 'url:2016': 0.84; 'maybe,': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mail201212; t=1458682408; bh=3TW5xyRprs7t5pVaDEwTDI4A2ayFc4aoVbOJf82Szrs=; h=To:From:Subject:Date:From; b=zCL2ZBZwOvfW4+pOHpol2qHtg70jogJ36zGSSesdL0qIIVtfAw2W8j8u7yBv0V8ON 19qiAdENNdI31QgmUjLjjIpX8CaCgXxFLg5zGPk3oPKb5WFFBXh2lUqWA3yVwlKJtV ntxDS2kOTNW0s6Sfs3lXcGbi+V/hzAnbZzJCSuKI=
X-purgate clean
X-purgate This mail is considered clean (visit http://www.eleven.de for further information)
X-purgate-type clean
X-purgate-Ad Categorized by eleven eXpurgate (R) http://www.eleven.de
X-purgate This mail is considered clean (visit http://www.eleven.de for further information)
X-purgate clean
X-purgate-size 480
X-purgate-ID 154282::1458682408-000018ED-EF40C9D8/0/0
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:105500

Show key headers only | View raw


Hi everybody,

I got another module up and running: xcache
Background described here: 
http://srkunze.blogspot.com/2016/03/safe-cache-invalidation.html

We needed a way to safely invalidate rlu_caches once a Web request has 
been finished. So, we came up with a solution using garbage collection 
and extended this to context managers for other purposes. Maybe, it can 
be useful to other Python devs as well. :-)

Let me know if you need help with it.

Best,
Sven

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

how to cache invalidation "Sven R. Kunze" <srkunze@mail.de> - 2016-03-22 22:33 +0100

csiph-web