Skip to content

"save" produce PHP Notice if there is not free memory in Redis #150

Description

@kandy

Steps:

  • I configure limited size of redis (40MB)
  • Redis php extension is not installed
  • I create a script and run
<?php
       $cache = new Cm_Cache_Backend_Redis([ ... ]);
       while (true) {
           $cache->save('data', "my_test_data" . $i++, ['tag1', 'tag2', 'tag3_'.$i ]);
       }

WIG:
PHP Notice: Undefined offset: 5 in /app/vendor/colinmollenhour/credis/Client.php on line 963
WIE:
save will return false or exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions