Support to more data structures and callbacks

I have added two functionalities in this commit:

1) Support to new data structures rather than string
2) Support to get callback on key expiration