Browse files

Added a _remove method to views

  • Loading branch information...
1 parent 0539c41 commit 96a81b84ffba83eda666fa96cbce1879f9e8be9a @andre-d committed Apr 18, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 r2/r2/lib/db/tdb_cassandra.py
View
6 r2/r2/lib/db/tdb_cassandra.py
@@ -1260,6 +1260,12 @@ def _set_values(cls, row_key, col_values,
# can we be smarter here?
thing_cache.delete(cls._cache_key_id(row_key))
+
+ @classmethod
+ @will_write
+ def _remove(cls, key, columns):
+ cls._cf.remove(key, columns)
+ thing_cache.delete(cls._cache_key_id(key))
class DenormalizedView(View):
"""Store the entire underlying object inside the View column."""

0 comments on commit 96a81b8

Please sign in to comment.