コード例 #1
0
    public static object Cache_Check(cache_user_t c)
    {
        CacheEntry cs = (CacheEntry)c;

        if (cs == null || cs.data == null)
        {
            return(null);
        }

        // move to head of LRU
        cs.Cache_UnlinkLRU();
        cs.LRUInstertAfter(_Head);

        return(cs.data);
    }