update lock and cache