def cache_data(line):
    args = shlex.split(line)
    reqid = args[0]
    cached = reqid in Request.cache._cached_reqs
    if reqid in Request.cache._last_used:
        last_used = Request.cache._last_used[reqid]
    else:
        last_used = 'NOT IN _last_used'
    in_all = reqid in Request.cache.all_ids
    in_unmangled = reqid in Request.cache.unmangled_ids
    try:
        ordered_ids_pos = Request.cache.ordered_ids.index(reqid)
    except __HOLE__:
        ordered_ids_pos = 'Not in ordered_ids'
    in_inmem = reqid in Request.cache.inmem_reqs

    print ''
    print 'Cache data about request %s ----------' % reqid
    print 'Cahced: %s' % cached
    print 'Last used: %s' % last_used
    print 'In all_ids: %s' % in_all
    print 'In unmangled: %s' % in_unmangled
    print 'Ordered id pos: %s' % ordered_ids_pos
    print 'Is inmem: %s' % in_inmem
    print ''
dataset/ETHPy150Open roglew/pappy-proxy/pappyproxy/plugins/debug.py/cache_data