 { Flexcache } = require("../flexcache")
 { RedisBackend } = require("../backend/redis")
 { MemoryBackend } = require("../backend/memory")
+
+
+TEST_BACKENDS = [RedisBackend, MemoryBackend]
+STRESS_RUNS = 10000
+
 
 async = require 'async'
 garbage = require 'garbage'

  return true;
}
`
module.exports.TestRedis = (test) ->

    back = new MemoryBackend() #RedisBackend()
    fc = new Flexcache back, ttl:400000, debug:2

    todo = 0 # calculated 

        


gentests "Stress", (test, backend) ->

    RUNS = STRESS_RUNS

    run = () ->
    back = new backend()
    options =
        ttl:100 * 1000 # 100 secs should be enough
        key: () ->
