stephpy/TimelineBundle — Issue #2: Notification System
Author: stephpy
Created: 2012-02-29 22:22:29+00:00
State: open

I thank about creating a new key for each context and subject:

````
TimelineNotifications:context:subject:subject_id
````

In this keys we'll have each timeline_actions read by user. But [Sorted sets](http://redis.io/commands#sorted_set) of redis actually not provides a method "zdiffstore". It's so difficult to extract unread notifications.

May we can only use a

````
TimelineUnreadNotifications:context:subject:subject_id
````

But this'll require us to create these notifications during deployment on timelines, i think that's the only one interesting idea, if somebody think about an other way ... let us know your opinion :)