|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-03-11 03:54 UTC] admin at mrmunk dot dk
Description: ------------ I'd love to have a feature such as wincache_ucache_entry_info($key) - returns array key_name - name of the key which is used to store the data value_type - type of value stored by the key use_time - time in seconds since the file has been accessed in the opcode cache last_check - time in seconds since the file has been checked for modifications is_session - indicates if the data is a session variable ttl_seconds - time remaining for the data to live in the cache, 0 meaning infinite age_seconds - time elapsed from the time data has been added in the cache hitcount - number of times data has been served from the cache I specifically need to get info about a specific entry in the cache for my application. I don't know where i can submit feature requests, so I'm sending it straight to you. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 12:00:01 2025 UTC |
This code should do exactly what you want: <?php function wincache_ucache_entry_info($key) { $ucache_info = wincache_ucache_info(); foreach ( $ucache_info['ucache_entries'] as $entry ) { if ( !strcmp($key, $entry['key_name']) ) return $entry; } return NULL; } ?> Can you let us know what scenario you are trying to solve and how are you going to use data like 'use_time' and 'last_check'?