The Pentatonic scales are scales that are very good to know, they're bsically five note versions of Major(Ionian) and Minor (Aeolian) scales. The space between the notes, or intervals, make these notes very melodic and easy to solo with, many guitarist begin their scale studies here at the pentatonics, like I have. Well these scales can be used in any context where Major (ionian) or Minor (Aeolian) would be used.
Here are some patterns for Major and Minor Pentatonic in the key of C, just move it around the board to play in different keys.
They're Might or Might not be groove at the bottom of this page currently, but if their is, use the the Major Pent scale over the Major Chords and the Minor Pent over the Minor Chords, this will give you the feel of both scales and show you switching in and out of keys.