Pull requests

#1 Declined
Repository
lxyu lxyu
Branch
refine_region_refresh
Repository
zzzeek zzzeek
Branch
master

refine region refresh method for cache decorators

Author
  1. Lx Yu
Reviewers
Description
  1. add asdict support for cache_multi_on_arguments
  2. add lock and ct in refresh method to keep the cached value always thenewest value.

There're still 2 issues:

  1. the refresh don't support decorate for class method. as there's no selfargs.
  2. about the tests, I create 2 test scripts here: https://gist.github.com/lxyu/5874652 . While it has global variable inside for communicate between threads, I found no elegant way to put them in tests/.

Any suggestion?

Thanks!

  • Learn about pull requests

Comments (0)