Skip to content

Commit

Permalink
xappy/cachemanager/generic.py: Add clear_facets method to base
Browse files Browse the repository at this point in the history
class.

git-svn-id: http://xappy.googlecode.com/svn/trunk@591 eff16abe-6239-0410-8a55-6f1cd6cf4f8f
  • Loading branch information
boulton.rj committed Jan 26, 2010
1 parent a8bc06d commit 72338ca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Tue Jan 26 10:51:36 GMT 2010 Richard Boulton <richard@tartarus.org>

* xappy/cachemanager/generic.py: Add clear_facets method to base
class.

Tue Jan 26 09:43:01 GMT 2010 Richard Boulton <richard@tartarus.org>

* xappy/cache_search_results.py,xappy/cachemanager/generic.py,
Expand Down
8 changes: 8 additions & 0 deletions xappy/cachemanager/generic.py
Expand Up @@ -259,6 +259,14 @@ def add_facets(self, queryid, facets):
"""
raise NotImplementedError

def clear_facets(self, queryid):
"""Clear the facets for a query.
`queryid` is the numeric ID of the query to look up.
"""
raise NotImplementedError

def flush(self):
"""Ensure that all changes made to the cache are written to disk.
Expand Down

0 comments on commit 72338ca

Please sign in to comment.