A lock using redis