srikanthm79 / CF-Jedis-Bridge

MIT License
1 stars 2 forks source link

added test cases and changes in jedisManager to handle if key is not … #20

Open srikanthm79 opened 8 months ago

srikanthm79 commented 8 months ago

…there.

Fixes #4

Created jedisManagerTest.cfc with following test cases:

  1. set and get value
  2. set and get complex value
  3. set component object should throw exception
  4. cacheGet - should return null for a non-existent
  5. cacheExists - should return false for a non-existent key
  6. cacheExists - should return true for existing key
  7. cacheClear - should clear existing key and return 1
  8. cacheClear - should return 0 for a non-existent key

Made changes in jedisManager.cfc - cacheGet function to handle a non-existent key as we get null value.