r18311: Simplify gencache_get by using strtol instead of sscanf