tdb_cassandra: Add the ability to remove items from views

This commit is contained in:
Andre D
2012-08-24 12:20:39 -05:00
committed by Neil Williams
parent a131ae7084
commit 1d64fa367c

View File

@@ -1465,6 +1465,12 @@ class View(ThingBase):
# 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."""