metaget (mget) PR

2019-05-01 Thread dormando
A smallish patch with some significant feature change:
https://github.com/memcached/memcached/pull/484

1) all of the potential fetch modes (do/don't bump LRU, etc)
2) currently hidden metadata (TTL remaining, last access time, etc)
3) human-readable (or easily script-readable) dump of all possible
metadata
4) thundering-herd lease-like passive lock feature.
5) stale-while-revalidate semantics
6) etc.

fleshing it out over the next couple days. hoping I haven't screwed it up
conceptually.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: metaget

2018-02-14 Thread dormando
Hey,

What's your use case?

The metaget command mcrouter uses appears to have some debug info that the
memcached doesn't store at all, so I don't think the command would be very
fast. If you intend to use something like metaget instead of normal get
for all requests, typically people will embed the expiration time into the
value of an item (or encode it in client flags somehow) instead.

Sadly the protocol isn't very flexible here. It's pretty easy to just
store it in the item value and make use of it for most cases. I'd be
curious to hear more about what you need exactly.

Thanks,
-Dormando

On Tue, 13 Feb 2018, theonajim via memcached wrote:

>
> We potentially have a need for fetching remaining time left before a key 
> expires from memcached. I see that mcrouter's metaget function could meet our
> needs, but it is not implemented in open source memcached. Are there plans to 
> add metaget function to open source memcached?
>
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups 
> "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to memcached+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


metaget

2018-02-13 Thread theonajim via memcached


We potentially have a need for fetching remaining time left before a key 
expires from memcached. I see that mcrouter's metaget function could meet 
our needs, but it is not implemented in open source memcached. Are there 
plans to add metaget function to open source memcached?


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.