ring: introduce peek style API