Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Sven R. Kunze" Newsgroups: comp.lang.python Subject: how to cache invalidation Date: Tue, 22 Mar 2016 22:33:27 +0100 Lines: 15 Message-ID: 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105500 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