Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dump() 方法返回有问题,已经被 delete() 的 key 仍旧会返回 #68

Open
breath-co2 opened this issue Jun 24, 2016 · 0 comments

Comments

@breath-co2
Copy link

README里并没有提到这个方法,但是我用 ReflectionClass 看到了这个方法,当 delete() 一个key 后在 dump() 的话,那个 key 对应的信息还在,只是返回的 ttl 由0变成了1。

Array
(
    [0] => Array
        (
            [index] => 168930
            [hash] => 3657602018
            [crc] => 2675899467
            [ttl] => 0
            [k_len] => 1
            [v_len] => 15
            [size] => 128
            [key] => 7
        )
)

删除前

Array
(
    [0] => Array
        (
            [index] => 168930
            [hash] => 3657602018
            [crc] => 2675899467
            [ttl] => 1
            [k_len] => 1
            [v_len] => 15
            [size] => 128
            [key] => 7
        )
)

删除后。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant