[wp-trac] [WordPress Trac] #20875: Introduce wp_cache_get_multi()

WordPress Trac noreply at wordpress.org
Tue Feb 5 06:20:15 UTC 2013


#20875: Introduce wp_cache_get_multi()
-------------------------+------------------
 Reporter:  nacin        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.6
Component:  Cache        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------
Changes (by wonderboymusic):

 * milestone:  Awaiting Review => 3.6


Comment:

 I squeezed the code into new code - I don't think the return value needs
 to be associative and bucketed. I think a standard use-case for get_multi
 in action is:

 {{{
 list( $one, $two, $three ) = wp_cache_get_multi( array( 'one', 'two',
 'three' ), 'numbers' );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20875#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list