Added support of "thread based cache"
Authored by: artyom-beilis 2009-12-12
Parent: [r937]
Child: [r939]