Object access read/write time

42 views
Skip to first unread message

Jeremy Raymond

unread,
Mar 30, 2012, 3:58:16 PM3/30/12
to redi...@googlegroups.com
Hello,

I'm looking for a way to tell the last time an object was read exclusive to the last time it was written. I see that OBJECT IDLETIME gives me time since the object either written or read. Is there a way to distinguish last read time vs last write time?

--
Jeremy

Josiah Carlson

unread,
Mar 30, 2012, 4:32:04 PM3/30/12
to redi...@googlegroups.com
Not without a patch, as far as I know. I wouldn't put particularly
good odds on it being accepted if a patch were submitted, but I may be
wrong.

Regards,
- Josiah

> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/redis-db/-/YB3t57ftW2MJ.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to
> redis-db+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.

Jeremy Raymond

unread,
Mar 30, 2012, 5:52:59 PM3/30/12
to redi...@googlegroups.com
Why is that?

Josiah Carlson

unread,
Mar 30, 2012, 6:14:29 PM3/30/12
to redi...@googlegroups.com
Since you didn't ask precisely, I'll answer both possible
interpretations of the question.

It requires a patch, because the information is not currently available.

I would give it low odds for one major reason. The information is not
currently available, and making it available would induce overhead on
every key for a use that isn't necessary for the vast majority of
use-cases (which is why it isn't currently available). In the best
case, it would increase overhead by 4 or 8 bytes per key, depending on
the platform. Maybe not so much a big deal with 1 million keys, but
100 million keys makes the overhead significant.

Regards,
- Josiah

On Fri, Mar 30, 2012 at 2:52 PM, Jeremy Raymond <jera...@gmail.com> wrote:
> Why is that?


>
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.

> To view this discussion on the web visit https://groups.google.com/d/msg/redis-db/-/ro-OZK22V6QJ.

Jeremy Raymond

unread,
Mar 30, 2012, 6:44:29 PM3/30/12
to redi...@googlegroups.com
Okay, thanks for the info. I appreciate your insights.

Regards,

Jeremy

Reply all
Reply to author
Forward
0 new messages