func (l *localStore) GetInt(key string) int {
	val, ok := l.Get(key)
	if !ok {
		return 0
	}
	res, ok := val.(int)
	if !ok {
		return 0
	}
	return res
}
GetInt value for a given key. If not found returns 0
package pool
import (
	"sort"
)
type localStore struct {
	data map[string]interface{}
}
func NewLocalStore() WorkerStore {
	return &localStore{data: map[string]interface{}{}}
}
func (l *localStore) Set(key string, val interface{}) {
	l.data[key] = val
}
func (l *localStore) Get(key string) (interface{}, bool) {
	val, ok := l.data[key]
	return val, ok
}