protected void saveIdListTo()

in plugin/src/main/groovy/grails/plugins/redis/RedisService.groovy [293:303]


    protected void saveIdListTo(String key, List domainList, Integer expire = null) {
        log.debug('{} cache miss, memoizing {} ids', key, domainList?.size() ?: 0)
        withOptionalPipeline { pipeline ->
            if (pipeline) {
                for (domain in domainList) {
                    pipeline.rpush(key, domain.id as String)
                }
                if (expire) pipeline.expire(key, expire)
            }
        }
    }