sasa1977 / con_cache

ets based key/value cache with row level isolated writes and ttl support
MIT License
910 stars 71 forks source link

Dirty Read #60

Closed andrepaes closed 4 years ago

andrepaes commented 4 years ago

Hello, is there a way to call the callback function after delete operation is done instead of before?

sasa1977 commented 4 years ago

Callback is invoked before the delete to allow the users to read full data. If this is a problem because you're reading from the table and don't want to include the record which is about to be deleted, I suggest you simply filter that record out from the data you fetch from the table.

andrepaes commented 4 years ago

thanks for the suggestion! I thought that would have an built-in way to do it but it's ok.