My cheap Chinese made Stackon, evidently now owned by Cannon, has an electronic lock. Five or so years old, and so far, so good. It does only like Energizer or Duracell batteries, though. I thought it had failed once after changing the battery. I used a store brand battery, and it just quit working. Went back and bought Energizer and the thing worked like new again.
The best part, though, is that it has a backup key. So if / when it does fail, I can still open the safe. I know it's a piece of junk, but all electronically locked safes should come with a backup key. I'll certainly never buy one without it.